async method
Last updated: 2026-03-05T23:42:19.807Z
Metrics
LOC: 14
Complexity: 4
Params: 2
Signature
async(updated, isNew)
Source Code
onSave={async (updated, isNew) => {
await sendToBackground({ type: "UPDATE_FORM", payload: updated });
if (isNew) {
panelState.savedForms = [...panelState.savedForms, updated];
addLog(`${t("logFormSaved")}: ${updated.name}`, "success");
} else {
const idx = panelState.savedForms.findIndex(
(f) => f.id === updated.id,
);
if (idx >= 0) panelState.savedForms[idx] = updated;
addLog(`${t("logTemplateUpdated")}: ${updated.name}`, "success");
}
renderFormsTab();
}}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| renderFormsTab | calls |
No incoming dependencies.