From 486585890d674ce3e160d2a8f1e6835e181b0b08 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:28:56 +0100 Subject: [feature] Move + alias account via settings panel (#2519) * [feature] Move + alias account via settings panel * lint * type a bit more diligently --- web/source/settings/lib/form/get-form-mutations.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'web/source/settings/lib/form/get-form-mutations.ts') 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[]; + 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); -- cgit v1.2.3