Skip to content

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

feat: ignore failed to fetch errors in sync

thecodrrb843362a6edc
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index 648685094..7fcd99cba 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -181,7 +181,6 @@ class AppStore extends BaseStore {
return await this.refresh();
})
.catch(async (err) => {
- showToast("error", err.message);
console.error(err);
if (err.code === "MERGE_CONFLICT") {
if (editorstore.get().session.id)
@@ -191,6 +190,10 @@ class AppStore extends BaseStore {
} else {
this.updateSyncStatus("failed");
}
+
+ if (err?.message?.indexOf("Failed to fetch") > -1) return;
+
+ showToast("error", err.message);
})
.finally(() => {
if (this.get().syncStatus.key === "conflicts") return;