From 856d450c7277edd0302f17365322e73dc37808e0 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 12 Jul 2023 09:42:25 -0700 Subject: patch, don't delete non-active steps with cmd+back --- extension/react-app/src/tabs/gui.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extension/react-app/src/tabs/gui.tsx') diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index 619b91e1..b6a18dc8 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -147,7 +147,8 @@ function GUI(props: GUIProps) { } else if ( e.key === "Backspace" && e.metaKey && - typeof history?.current_index !== "undefined" + typeof history?.current_index !== "undefined" && + history.timeline[history.current_index]?.active ) { client?.deleteAtIndex(history.current_index); } -- cgit v1.2.3-70-g09d2