diff --git a/src/store/workflowStore.ts b/src/store/workflowStore.ts index 472206ab..49632a4e 100644 --- a/src/store/workflowStore.ts +++ b/src/store/workflowStore.ts @@ -526,7 +526,7 @@ const workflowStoreImpl: StateCreator = (set, get) => ({ }, setHoveredNodeId: (id: string | null) => { - set({ hoveredNodeId: id }); + if (get().hoveredNodeId !== id) set({ hoveredNodeId: id }); }, addNode: (type: NodeType, position: XYPosition, initialData?: Partial) => {