mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix/frontend] Add nosubmit
option to form fields + use it when instance custom CSS disabled (#2290)
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user