From 461635a06bfafd70500b989fd7c8549987c2724a Mon Sep 17 00:00:00 2001 From: EdamAmex Date: Fri, 20 Dec 2024 07:10:35 +0000 Subject: [PATCH] fix --- packages/frontend/src/scripts/use-form.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/use-form.ts b/packages/frontend/src/scripts/use-form.ts index 14eaf9c0b9..ffcb68cef9 100644 --- a/packages/frontend/src/scripts/use-form.ts +++ b/packages/frontend/src/scripts/use-form.ts @@ -17,7 +17,7 @@ export function useForm>(initialState: T, save: (n const currentState = reactive(copy(initialState)); const previousState = reactive(copy(initialState)); - const modifiedStates = reactive | {}>({}); + const modifiedStates = reactive | Record>({}); for (const key in currentState) { modifiedStates[key] = false; }