diff --git a/api/js/etemplate/et2_dataview_controller.js b/api/js/etemplate/et2_dataview_controller.js index 66f1f656d2..5e71e745c8 100644 --- a/api/js/etemplate/et2_dataview_controller.js +++ b/api/js/etemplate/et2_dataview_controller.js @@ -728,7 +728,7 @@ var et2_dataview_controller = /** @class */ (function () { entry.idx = newIdx; newMap[newIdx] = entry; } - else { + else if (newMap[newIdx] !== this._indexMap[key]) { // Make sure the old entry gets invalidated entry.idx = null; entry.row = null; diff --git a/api/js/etemplate/et2_dataview_controller.ts b/api/js/etemplate/et2_dataview_controller.ts index 2b19773547..ffdfb37e9e 100644 --- a/api/js/etemplate/et2_dataview_controller.ts +++ b/api/js/etemplate/et2_dataview_controller.ts @@ -1007,7 +1007,7 @@ export class et2_dataview_controller entry.idx = newIdx; newMap[newIdx] = entry; } - else + else if(newMap[newIdx]!==this._indexMap[key]) { // Make sure the old entry gets invalidated entry.idx = null;