From b2e14512b97967299427e7b840537e850212ac89 Mon Sep 17 00:00:00 2001 From: Supavasinan Promdetch <95174704+Supavasinan@users.noreply.github.com> Date: Mon, 11 Nov 2024 22:38:52 +0700 Subject: [PATCH] fix keyboard shortcut (ctrl + k) with empty categories (#177) --- frontend/src/components/CommandMenu.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/CommandMenu.tsx b/frontend/src/components/CommandMenu.tsx index 7dce1fd2c..140897e5a 100644 --- a/frontend/src/components/CommandMenu.tsx +++ b/frontend/src/components/CommandMenu.tsx @@ -40,6 +40,7 @@ export default function CommandMenu() { const down = (e: KeyboardEvent) => { if (e.key === "k" && (e.metaKey || e.ctrlKey)) { e.preventDefault(); + fetchSortedCategories(); setOpen((open) => !open); } };