summaryrefslogtreecommitdiff
path: root/extension/react-app/src
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-12 09:42:25 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-12 09:42:25 -0700
commitc306d66b75862272e6a7891082422c0751742cfa (patch)
tree053b174b18d329ee7f6a82b63b7adfaf7bd6dd04 /extension/react-app/src
parenta6ac1fdae55ba79e2ffbd00f88fc39971ed47f58 (diff)
downloadsncontinue-c306d66b75862272e6a7891082422c0751742cfa.tar.gz
sncontinue-c306d66b75862272e6a7891082422c0751742cfa.tar.bz2
sncontinue-c306d66b75862272e6a7891082422c0751742cfa.zip
patch, don't delete non-active steps with cmd+back
Diffstat (limited to 'extension/react-app/src')
-rw-r--r--extension/react-app/src/tabs/gui.tsx3
1 files changed, 2 insertions, 1 deletions
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);
}