Skip to content

Commit

Permalink
fix keyboard shortcut (ctrl + k) with empty categories (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Supavasinan authored Nov 11, 2024
1 parent c229c9c commit b2e1451
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/CommandMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit b2e1451

Please sign in to comment.