Skip to content

Commit

Permalink
Fix the bug of stale highlighted cells on program restart
Browse files Browse the repository at this point in the history
  • Loading branch information
nineonine committed Oct 2, 2023
1 parent 3a9aa22 commit 1aea6ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/Visualization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const Visualization: React.FC = () => {
setIsHalt(false);
setMemory(new Array(0).fill({ status: CellStatus.Free }));
setEventLogs([[SUGGEST_INIT_LOG_ENTRY, undefined]]);
clearHighlightedCells();
}

const handleRestart = () => {
Expand Down

0 comments on commit 1aea6ee

Please sign in to comment.