From 1aea6ee3a70d77414000ee00b988e4964a2d505a Mon Sep 17 00:00:00 2001 From: nineonine Date: Sun, 1 Oct 2023 19:17:10 -0700 Subject: [PATCH] Fix the bug of stale highlighted cells on program restart --- frontend/src/Visualization.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/Visualization.tsx b/frontend/src/Visualization.tsx index cd90a98..3b9b200 100644 --- a/frontend/src/Visualization.tsx +++ b/frontend/src/Visualization.tsx @@ -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 = () => {