From 22497199c512589ed3d162ef10ac0dedcd0316aa Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Thu, 25 Dec 2025 11:40:05 +0500 Subject: [PATCH] mobile: catch errors --- apps/mobile/app/stores/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/mobile/app/stores/index.ts b/apps/mobile/app/stores/index.ts index e2f0218f7..895b798eb 100644 --- a/apps/mobile/app/stores/index.ts +++ b/apps/mobile/app/stores/index.ts @@ -126,7 +126,12 @@ export function initAfterSync(type: "full" | "send" = "send") { Notifications.setupReminders(true); NotePreviewWidget.updateNotes(); eSendEvent(eAfterSync); - NotesnookModule.getAllShortcuts().then(syncShortcuts); + + NotesnookModule.getAllShortcuts() + .then(syncShortcuts) + .catch((e) => { + DatabaseLogger.log(e); + }); } export async function initialize() {}