fix: duplicate colors and tags on sync

This commit is contained in:
thecodrr
2021-02-20 09:50:22 +05:00
parent bdfd9683e6
commit 4652a74f43

View File

@@ -41,9 +41,9 @@ class Merger {
async _mergeArray(array, get, set) {
if (!array) return;
return Promise.all(
array.map(async (item) => await this._mergeItem(item, get, set))
);
for (let item of array) {
await this._mergeItem(item, get, set);
}
}
async _mergeItemWithConflicts(remoteItem, get, add, resolve) {