Skip to content

Commit

Permalink
fix error when deleting rule with selected node
Browse files Browse the repository at this point in the history
  • Loading branch information
eneoli committed Sep 4, 2024
1 parent 40e0799 commit 53d3faf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ export function VisualProofEditor(props: VisualProofEditorProps) {
newProofTree.premisses = [];
newProofTree.rule = null;

reasoningContext.selectedNodeId = null;

replaceTreeNodeById(reasoningContext.proofTree, nodeId, newProofTree);

updateReasoningContexts([
Expand Down

0 comments on commit 53d3faf

Please sign in to comment.