Skip to content

Commit f065871

Browse files
fix: use hasFormChanges instead of isDirty in sendRequestWithPasswordCheck
1 parent c1834e8 commit f065871

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/Builder/features/SaveAndPublish/SaveAndPublish.hooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export const useSaveAndPublishSetup = (): SaveAndPublishSetup => {
292292
const { t } = useTranslation('app');
293293
const {
294294
trigger,
295-
formState: { dirtyFields, isDirty },
295+
formState: { dirtyFields },
296296
} = useCustomFormContext();
297297
const { pathname } = useLocation();
298298
const getAppletData = useAppletDataFromForm();
@@ -463,7 +463,7 @@ export const useSaveAndPublishSetup = (): SaveAndPublishSetup => {
463463
return;
464464
}
465465

466-
if (!isDirty) {
466+
if (!hasFormChanges) {
467467
dispatch(banners.actions.addBanner({ key: 'AppletWithoutChangesBanner' }));
468468

469469
return;

0 commit comments

Comments
 (0)