mobile: fix error in shortcut manager

This commit is contained in:
Ammar Ahmed
2024-12-23 19:23:08 +05:00
committed by Abdullah Atta
parent 58a6bbd262
commit 85e046a379

View File

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