diff options
| author | 2023-10-24 10:28:59 +0200 | |
|---|---|---|
| committer | 2023-10-24 14:34:43 +0200 | |
| commit | 8a23ce2b3ef506cd9f254c40b1c7fd51ba472ce9 (patch) | |
| tree | c2ba547698d92f53705600851673ccb4f676bab8 /web/source/settings/lib/form/get-form-mutations.ts | |
| parent | [bugfix/frontend] fix typo and other oddness in patchRemoteEmojis (#2281) (diff) | |
| download | gotosocial-8a23ce2b3ef506cd9f254c40b1c7fd51ba472ce9.tar.xz | |
[bugfix/frontend] Add `nosubmit` option to form fields + use it when instance custom CSS disabled (#2290)
Diffstat (limited to 'web/source/settings/lib/form/get-form-mutations.ts')
| -rw-r--r-- | web/source/settings/lib/form/get-form-mutations.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/source/settings/lib/form/get-form-mutations.ts b/web/source/settings/lib/form/get-form-mutations.ts index 6e1bfa02d..a3dc36601 100644 --- a/web/source/settings/lib/form/get-form-mutations.ts +++ b/web/source/settings/lib/form/get-form-mutations.ts @@ -27,6 +27,12 @@ export default function getFormMutations( const mutationData: Array<[string, any]> = []; Object.values(form).forEach((field) => { + if (field.nosubmit) { + // Completely ignore + // this field. + return; + } + if ("selectedValues" in field) { // FieldArrayInputHook. const selected = field.selectedValues(); |
