mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
fix
This commit is contained in:
parent
3981dc4bd1
commit
461635a06b
@ -17,7 +17,7 @@ export function useForm<T extends Record<string, any>>(initialState: T, save: (n
|
||||
const currentState = reactive<T>(copy(initialState));
|
||||
const previousState = reactive<T>(copy(initialState));
|
||||
|
||||
const modifiedStates = reactive<Record<keyof T, boolean> | {}>({});
|
||||
const modifiedStates = reactive<Record<keyof T, boolean> | Record<string, never>>({});
|
||||
for (const key in currentState) {
|
||||
modifiedStates[key] = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user