Skip to content

Commit

Permalink
Merge pull request #1194 from ShirayukiRin/main
Browse files Browse the repository at this point in the history
fix remove node with hotkeys in graph
  • Loading branch information
ra3orblade authored Feb 3, 2025
2 parents e0e1a39 + 1a62706 commit a1f9201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ts/component/graph/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ const Graph = observer(forwardRef<GraphRefProps, Props>(({
keyboard.shortcut('backspace, delete', e, () => {
Action.archive(ids.current, analytics.route.graph, () => {
nodes.current = nodes.current.filter(d => !ids.current.includes(d.id));
send('onRemoveNode', { ids: ids });
send('onRemoveNode', { ids: ids.current });
});
});
};
Expand Down Expand Up @@ -555,4 +555,4 @@ const Graph = observer(forwardRef<GraphRefProps, Props>(({
);
}));

export default Graph;
export default Graph;

0 comments on commit a1f9201

Please sign in to comment.