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)

graph LR async["async"] renderFormsTab["renderFormsTab"] async -->|calls| renderFormsTab style async fill:#dbeafe,stroke:#2563eb,stroke-width:2px click async "4144745a7964d182.html" click renderFormsTab "7a55f79022abf472.html"
TargetType
renderFormsTab calls

No incoming dependencies.