fix: don't run autosync for localOnly items

This commit is contained in:
thecodrr
2022-03-31 11:46:48 +05:00
parent 2d6824cc73
commit b90858e199
3 changed files with 3 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export class AutoSync {
* @private
*/
schedule(id, item) {
if (item && item.remote) return;
if (item && (item.remote || item.localOnly)) return;
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {