From c32bbcc7edc2cf99da52b1407c90238bc781a804 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Thu, 25 Jul 2024 23:31:38 +0100 Subject: feat(gui): directory block, re-org of some code (#2314) --- ui/src/components/runbooks/List.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ui/src/components/runbooks/List.tsx') 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(); }} -- cgit v1.3.1