mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Move + alias account via settings panel (#2519)
* [feature] Move + alias account via settings panel * lint * type a bit more diligently
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user