Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix crash on shortcut removal

Abdullah Atta4f08f1aa5e42
diff --git a/apps/web/src/components/navigation-menu/index.tsx b/apps/web/src/components/navigation-menu/index.tsx
index 359480f13..ec545460c 100644
--- a/apps/web/src/components/navigation-menu/index.tsx
+++ b/apps/web/src/components/navigation-menu/index.tsx
@@ -212,7 +212,7 @@ function NavigationMenu(props: NavigationMenuProps) {
{
key: "removeshortcut",
title: () => "Remove shortcut",
- onClick: async ({ item }: { item: { id: string } }) => {
+ onClick: async () => {
await db.shortcuts?.remove(item.id);
refreshNavItems();
}