handleAddField function presentation
Last updated: 2026-03-04T23:21:38.422Z
Metrics
LOC: 8
Complexity: 1
Params: 0
Signature
handleAddField(): : void
Source Code
function handleAddField(): void {
const next: FormTemplateField[] = [
...fields,
{ key: "", label: "", mode: "fixed" as FormFieldMode, fixedValue: "" },
];
setFields(next);
setEditingFieldIndex(next.length - 1);
}
No outgoing dependencies.
No incoming dependencies.