applySavedForm function exported

Last updated: 2026-03-05T23:42:19.807Z

Metrics

LOC: 12 Complexity: 3 Params: 1

Signature

applySavedForm(form: SavedForm): : Promise<void>

Source Code

export async function applySavedForm(form: SavedForm): Promise<void> {
  addLog(t("logApplyingTemplate") + ": " + form.name);
  try {
    const result = (await sendToPage({
      type: "APPLY_TEMPLATE",
      payload: form,
    })) as { filled?: number };
    addLog(`${result?.filled ?? 0} ${t("filled")}`, "success");
  } catch (err) {
    addLog(`Erro: ${err}`, "error");
  }
}

No outgoing dependencies.

Impact (Incoming)

graph LR applySavedForm["applySavedForm"] renderFormsTab["renderFormsTab"] renderFormsTab -->|calls| applySavedForm style applySavedForm fill:#dbeafe,stroke:#2563eb,stroke-width:2px click applySavedForm "c905e140680aa3a7.html" click renderFormsTab "7a55f79022abf472.html"
SourceType
renderFormsTab calls