fillOnlyEmpty function exported

Last updated: 2026-03-05T23:41:17.531Z

Metrics

LOC: 12 Complexity: 3 Params: 0

Signature

fillOnlyEmpty(): : Promise<void>

Source Code

export async function fillOnlyEmpty(): Promise<void> {
  addLog(t("logFillingEmpty"));
  try {
    const result = (await sendToPage({
      type: "FILL_ALL_FIELDS",
      payload: { fillEmptyOnly: true },
    })) as { filled?: number };
    addLog(`${result?.filled ?? 0} ${t("filled")}`, "success");
  } catch (err) {
    addLog(`Erro ao preencher: ${err}`, "error");
  }
}

No outgoing dependencies.

Impact (Incoming)

graph LR fillOnlyEmpty["fillOnlyEmpty"] toggleWatch["toggleWatch"] renderFieldsTab["renderFieldsTab"] toggleWatch -->|calls| fillOnlyEmpty renderFieldsTab -->|calls| fillOnlyEmpty style fillOnlyEmpty fill:#dbeafe,stroke:#2563eb,stroke-width:2px click fillOnlyEmpty "84fc64fe499c6732.html" click toggleWatch "5b1d47a07d7aa0c9.html" click renderFieldsTab "f02a4b6eabef0223.html"
SourceType
toggleWatch calls
renderFieldsTab calls