Etemplate: Fix editing entry so it no longer matched current filters would cause missing rows and incorrect total

This commit is contained in:
nathangray
2020-10-02 10:38:49 -06:00
parent 55b615af5f
commit f07303b321
4 changed files with 34 additions and 25 deletions

View File

@ -159,7 +159,7 @@ var et2_nextmatch_controller = /** @class */ (function (_super) {
* @param {string} uid
*/
et2_nextmatch_controller.prototype.deleteRow = function (uid) {
var entry = this._selectionMgr._getRegisteredRowsEntry(uid);
var entry = Object.values(this._indexMap).find(function (entry) { return entry.uid == uid; });
// Unselect
this._selectionMgr.setSelected(uid, false);
if (entry && entry.idx !== null) {