Removed unused console.log
This commit is contained in:
parent
6a6d11447b
commit
f5ae805db1
1 changed files with 0 additions and 7 deletions
|
|
@ -38,23 +38,18 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
|||
set({ isBuilt });
|
||||
},
|
||||
onNodesChange: (changes: NodeChange[]) => {
|
||||
console.log("a")
|
||||
set({
|
||||
nodes: applyNodeChanges(changes, get().nodes),
|
||||
});
|
||||
if (!get().isPending) set({ isPending: true });
|
||||
},
|
||||
onEdgesChange: (changes: EdgeChange[]) => {
|
||||
console.log("b")
|
||||
|
||||
set({
|
||||
edges: applyEdgeChanges(changes, get().edges),
|
||||
});
|
||||
if (!get().isPending) set({ isPending: true });
|
||||
},
|
||||
setNodes: (change) => {
|
||||
console.log("c")
|
||||
|
||||
let newChange = typeof change === "function" ? change(get().nodes) : change;
|
||||
let newEdges = cleanEdges(newChange, get().edges);
|
||||
|
||||
|
|
@ -62,8 +57,6 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
|||
set({ nodes: newChange });
|
||||
},
|
||||
setEdges: (change) => {
|
||||
console.log("d")
|
||||
|
||||
let newChange = typeof change === "function" ? change(get().edges) : change;
|
||||
|
||||
set({ edges: newChange });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue