From 85e046a379e2976c4fa2d11bc998098fda21d4a9 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Mon, 23 Dec 2024 19:23:08 +0500 Subject: [PATCH] mobile: fix error in shortcut manager --- apps/mobile/app/navigation/tabs-holder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/app/navigation/tabs-holder.js b/apps/mobile/app/navigation/tabs-holder.js index fa7237c03..78a0d0fd4 100644 --- a/apps/mobile/app/navigation/tabs-holder.js +++ b/apps/mobile/app/navigation/tabs-holder.js @@ -97,7 +97,7 @@ const _TabsHolder = () => { tabBarRef.current?.goToPage(1, false); return; } - if (item.type === "notesnook.action.newnote") { + if (item && item.type === "notesnook.action.newnote") { clearAppState(); if (!tabBarRef.current) { await sleep(3000);