MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / deleteModel

Function deleteModel

ts/workflow-builder/src/utils/modelOperations.ts:49–59  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

47 });
48}
49
50export function deleteModel(id: string): void {
51 const key = id;
52 useEditorStore.getState().setModels((models) => {
53 const { [key]: _drop, ...rest } = models;
54 return rest;
55 });
56 const sel = useEditorStore.getState().selection;
57 if (sel.kind === "model" && sel.id === id) {
58 useEditorStore.getState().clearSelection();
59 }
60}

Callers 1

ModelConfigPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected