mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 17:00:19 +01:00
fix
This commit is contained in:
parent
3981dc4bd1
commit
461635a06b
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ export function useForm<T extends Record<string, any>>(initialState: T, save: (n
|
||||||
const currentState = reactive<T>(copy(initialState));
|
const currentState = reactive<T>(copy(initialState));
|
||||||
const previousState = 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) {
|
for (const key in currentState) {
|
||||||
modifiedStates[key] = false;
|
modifiedStates[key] = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue