From 8ba4ef1185f2ae7dbf1543b1266e2b170c2f67f7 Mon Sep 17 00:00:00 2001 From: Biswajeet Das Date: Thu, 9 May 2024 10:46:04 +0530 Subject: [PATCH] Fix form not dirty on image upload (#5528) * fix: remove hostlist * fix: make form dirty when image is uploaded --- apps/web/src/pages/brand/tabs/v2/BrandLogoUpload.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/pages/brand/tabs/v2/BrandLogoUpload.tsx b/apps/web/src/pages/brand/tabs/v2/BrandLogoUpload.tsx index 8a01068df7e..c3fa15acc01 100644 --- a/apps/web/src/pages/brand/tabs/v2/BrandLogoUpload.tsx +++ b/apps/web/src/pages/brand/tabs/v2/BrandLogoUpload.tsx @@ -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);