Compare commits

...

2 Commits

Author SHA1 Message Date
Ammar Ahmed
f56c6e4484 mobile: fix ts error 2025-06-28 12:21:57 +05:00
Ammar Ahmed
74f51085d1 mobile: fix sync taking too long to complete 2025-06-28 12:20:33 +05:00
2 changed files with 3 additions and 1 deletions

View File

@@ -755,6 +755,8 @@ export const useEditor = (
? (data as ContentItem).noteId
: data.id;
if (!useTabStore.getState().hasTabForNote(noteId)) return;
const note = data.type === "note" ? data : await db.notes?.note(noteId);
lock.current = true;
// Handle this case where note was locked on another device and synced.

View File

@@ -98,7 +98,7 @@ class TabSessionStorage {
static get(id: string): TabSessionItem | null {
if (!id) return null;
return TabSessionStorage.storage.getMap(id);
return TabSessionStorage.storage.getMap(id) || null;
}
static set(id: string, session: TabSessionItem): void {