Skip to content

Commit

Permalink
Fix form not dirty on image upload (#5528)
Browse files Browse the repository at this point in the history
* fix: remove hostlist

* fix: make form dirty when image is uploaded
  • Loading branch information
BiswaViraj authored May 9, 2024
1 parent cdfd0d3 commit 8ba4ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/pages/brand/tabs/v2/BrandLogoUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function BrandLogoUpload({ field, setValue }: BrandLogoUploadProps) {

const { uploadToStorage } = useUploadToStorage({
onSuccess: (path) => {
setValue('logo', path);
setValue('logo', path, { shouldDirty: true });
},
onError: (e) => {
errorMessage('Failed to upload branding image: ' + e.message);
Expand Down

0 comments on commit 8ba4ef1

Please sign in to comment.