web: ignore Could not connect to the Sync server error

This commit is contained in:
Abdullah Atta
2023-07-04 18:06:17 +05:00
parent 3f0a656a36
commit fc5507bdd3

View File

@@ -317,7 +317,11 @@ class AppStore extends BaseStore {
this.updateSyncStatus("failed");
}
if (err?.message?.indexOf("Failed to fetch") > -1) return;
if (
err?.message?.indexOf("Failed to fetch") > -1 ||
err?.message?.indexOf("Could not connect to the Sync server.") > -1
)
return;
showToast("error", err.message);
}