MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / dispatchNodeDataUpdate

Function dispatchNodeDataUpdate

src/nodeGraph/nodes/shared.tsx:11–21  ·  view source on GitHub ↗
(
  data: NodeEditorActionData | undefined,
  detail: FlowNodeDataPatch & { nodeId?: string },
)

Source from the content-addressed store, hash-verified

9};
10
11export const dispatchNodeDataUpdate = (
12 data: NodeEditorActionData | undefined,
13 detail: FlowNodeDataPatch & { nodeId?: string },
14) => {
15 if (typeof data?.onUpdateNodeData !== "function") {
16 return;
17 }
18
19 const { nodeId: _nodeId, ...patch } = detail;
20 data.onUpdateNodeData(patch);
21};
22
23export const isNodeEditorDebugEnabled = () =>
24 process.env.NODE_ENV === "development" && process.env.WHMM_VERBOSE_NODE_EDITOR === "1";

Callers 15

handleDropdownChangeFunction · 0.90
handleCheckboxChangeFunction · 0.90
handleTextChangeFunction · 0.90
GroupByColumnsNodeFunction · 0.90
handleDropdown1ChangeFunction · 0.90
handleDropdown2ChangeFunction · 0.90
FilterNodeFunction · 0.90
updateFiltersFunction · 0.90
ReferenceTableLookupNodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected