diff options
Diffstat (limited to 'packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx')
-rw-r--r-- | packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx b/packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx index 4397fc197..d8877333c 100644 --- a/packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx +++ b/packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx @@ -51,7 +51,7 @@ export function FormProvider<T>({ const value = useRef(initialValue ?? {}); useEffect(() => { return function onUnload() { - value.current = {}; + value.current = initialValue ?? {}; }; }); return ( |