Skip to content

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

mobile: fix error in shortcut manager

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