diff options
author | 2024-01-16 18:28:56 +0100 | |
---|---|---|
committer | 2024-01-16 18:28:56 +0100 | |
commit | 486585890d674ce3e160d2a8f1e6835e181b0b08 (patch) | |
tree | a0d954f5a71f71ddfd4a243152dab10f14397f6e /web/source/settings/lib/form/get-form-mutations.ts | |
parent | [feature] Account alias / move API + db models (#2518) (diff) | |
download | gotosocial-486585890d674ce3e160d2a8f1e6835e181b0b08.tar.xz |
[feature] Move + alias account via settings panel (#2519)
* [feature] Move + alias account via settings panel
* lint
* type a bit more diligently
Diffstat (limited to 'web/source/settings/lib/form/get-form-mutations.ts')
-rw-r--r-- | web/source/settings/lib/form/get-form-mutations.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/web/source/settings/lib/form/get-form-mutations.ts b/web/source/settings/lib/form/get-form-mutations.ts index a3dc36601..0959fcf95 100644 --- a/web/source/settings/lib/form/get-form-mutations.ts +++ b/web/source/settings/lib/form/get-form-mutations.ts @@ -22,7 +22,12 @@ import { FormInputHook, HookedForm } from "./types"; export default function getFormMutations( form: HookedForm, { changedOnly }: { changedOnly: boolean }, -) { +): { + updatedFields: FormInputHook<any>[]; + mutationData: { + [k: string]: any; + }; +} { const updatedFields: FormInputHook[] = []; const mutationData: Array<[string, any]> = []; @@ -34,7 +39,7 @@ export default function getFormMutations( } if ("selectedValues" in field) { - // FieldArrayInputHook. + // (Field)ArrayInputHook. const selected = field.selectedValues(); if (!changedOnly || selected.length > 0) { updatedFields.push(field); |