|
@@ -2132,7 +2132,7 @@ const createAncillaryGcl = function (setting) {
|
|
|
const masterKey = this.itemPre + d[this.setting.masterId];
|
|
|
if (!this.masterIndex[masterKey]) this.masterIndex[masterKey] = [];
|
|
|
this.masterIndex[masterKey].push(d);
|
|
|
- if (resort.indexOf(masterKey) < -1) resort.push(masterKey);
|
|
|
+ if (resort.indexOf(masterKey) < 0) resort.push(masterKey);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2149,7 +2149,7 @@ const createAncillaryGcl = function (setting) {
|
|
|
item[prop] = d[prop];
|
|
|
}
|
|
|
const masterKey = this.itemPre + item[this.setting.masterId];
|
|
|
- if (resort.indexOf(masterKey) === -1) resort.push(masterKey);
|
|
|
+ if (resort.indexOf(masterKey) < 0) resort.push(masterKey);
|
|
|
}
|
|
|
|
|
|
}
|