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);