Use id list instead of just the first ID when update returns no data

(update, total <=0)
This commit is contained in:
nathan 2024-03-18 13:43:08 -06:00
parent 05efd753fe
commit 0738ccc0f3

View File

@ -972,8 +972,12 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
}
else if(this.type == et2_nextmatch.UPDATE)
{
// Remove row from controller
this.controller.deleteRow(this.uid);
// Remove rows from controller
row_ids.forEach(id =>
{
let uid = `${this.prefix}::${id}`;
this.controller.deleteRow(uid);
});
// Adjust total rows, clean grid
this.controller._grid.setTotalCount(this.nm.controller._grid._total - row_ids.length);