diff --git a/apps/client/src/features/app-settings/panel/settings-panel/GeneralSettings.tsx b/apps/client/src/features/app-settings/panel/settings-panel/GeneralSettings.tsx index 1d322ba09..d56cd4789 100644 --- a/apps/client/src/features/app-settings/panel/settings-panel/GeneralSettings.tsx +++ b/apps/client/src/features/app-settings/panel/settings-panel/GeneralSettings.tsx @@ -32,7 +32,6 @@ export default function GeneralSettings() { } = useForm({ mode: 'onChange', defaultValues: data, - values: data, resetOptions: { keepDirtyValues: true, }, diff --git a/apps/client/src/features/app-settings/panel/settings-panel/ViewSettings.tsx b/apps/client/src/features/app-settings/panel/settings-panel/ViewSettings.tsx index c6542adff..dc60b23d5 100644 --- a/apps/client/src/features/app-settings/panel/settings-panel/ViewSettings.tsx +++ b/apps/client/src/features/app-settings/panel/settings-panel/ViewSettings.tsx @@ -31,7 +31,6 @@ export default function ViewSettings() { formState: { isSubmitting, isDirty, errors }, } = useForm({ defaultValues: data, - values: data, resetOptions: { keepDirtyValues: true, }, diff --git a/apps/client/src/features/app-settings/panel/settings-panel/composite/StyleEditorModal.tsx b/apps/client/src/features/app-settings/panel/settings-panel/composite/StyleEditorModal.tsx index d99e33193..0a70061d1 100644 --- a/apps/client/src/features/app-settings/panel/settings-panel/composite/StyleEditorModal.tsx +++ b/apps/client/src/features/app-settings/panel/settings-panel/composite/StyleEditorModal.tsx @@ -1,4 +1,4 @@ -import { lazy, useEffect, useRef, useState } from 'react'; +import { lazy, Suspense, useEffect, useRef, useState } from 'react'; import { getCSSContents, postCSSContents, restoreCSSContents } from '../../../../../common/api/assets'; import Button from '../../../../../common/components/buttons/Button'; @@ -81,7 +81,9 @@ export default function CodeEditorModal({ isOpen, onClose }: CodeEditorModalProp showCloseButton showBackdrop bodyElements={ - + + + } footerElements={