From 2b12ec47b4e86d6c16a1573c74fbf3f6476d6cb1 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 22 Oct 2020 13:40:19 -0600 Subject: [PATCH] Etemplate: Fix auto-refresh mixed up new rows --- api/js/etemplate/et2_dataview_controller.js | 2 +- api/js/etemplate/et2_dataview_controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;