aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/components/runbooks/List.tsx
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2024-07-25 23:31:38 +0100
committerGitHub <noreply@github.com>2024-07-25 23:31:38 +0100
commitc32bbcc7edc2cf99da52b1407c90238bc781a804 (patch)
tree4a8b307f69fb444f5c8c15a65e6f89170d9d4bbf /ui/src/components/runbooks/List.tsx
parentfeat(gui): allow interacting with the embedded terminal (#2312) (diff)
downloadatuin-c32bbcc7edc2cf99da52b1407c90238bc781a804.zip
feat(gui): directory block, re-org of some code (#2314)
Diffstat (limited to 'ui/src/components/runbooks/List.tsx')
-rw-r--r--ui/src/components/runbooks/List.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/src/components/runbooks/List.tsx b/ui/src/components/runbooks/List.tsx
index d4591e6f..42da3885 100644
--- a/ui/src/components/runbooks/List.tsx
+++ b/ui/src/components/runbooks/List.tsx
@@ -109,8 +109,7 @@ const NoteSidebar = () => {
onPress={async () => {
await Runbook.delete(runbook.id);
- if (runbook.id == currentRunbook)
- setCurrentRunbook(null);
+ if (runbook.id == currentRunbook) setCurrentRunbook("");
refreshRunbooks();
}}