Etemplate: Fix auto-refresh mixed up new rows

This commit is contained in:
nathangray 2020-10-22 13:40:19 -06:00
parent fa80d4c1f9
commit 3b90e1a50d
2 changed files with 2 additions and 2 deletions

View File

@ -728,7 +728,7 @@ var et2_dataview_controller = /** @class */ (function () {
entry.idx = newIdx; entry.idx = newIdx;
newMap[newIdx] = entry; newMap[newIdx] = entry;
} }
else { else if (newMap[newIdx] !== this._indexMap[key]) {
// Make sure the old entry gets invalidated // Make sure the old entry gets invalidated
entry.idx = null; entry.idx = null;
entry.row = null; entry.row = null;

View File

@ -1007,7 +1007,7 @@ export class et2_dataview_controller
entry.idx = newIdx; entry.idx = newIdx;
newMap[newIdx] = entry; newMap[newIdx] = entry;
} }
else else if(newMap[newIdx]!==this._indexMap[key])
{ {
// Make sure the old entry gets invalidated // Make sure the old entry gets invalidated
entry.idx = null; entry.idx = null;