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; }