patch function presentation

Last updated: 2026-03-04T23:21:38.422Z

Metrics

LOC: 3 Complexity: 1 Params: 1

Signature

patch(partial: Partial<FormTemplateField>)

Source Code

  function patch(partial: Partial<FormTemplateField>) {
    setDraft((prev) => ({ ...prev, ...partial }));
  }

No outgoing dependencies.

Impact (Incoming)

graph LR patch["patch"] handleGeneratorTypeChange["handleGeneratorTypeChange"] FormsTabViewCallbacks["FormsTabViewCallbacks"] handleGeneratorTypeChange -->|calls| patch FormsTabViewCallbacks -->|calls| patch style patch fill:#dbeafe,stroke:#2563eb,stroke-width:2px click patch "1b15372e6d9c83f5.html" click handleGeneratorTypeChange "f74c8ee533cbc9ab.html" click FormsTabViewCallbacks "413148ba3c727cc8.html"