diff --git a/front/core/components/smart-table/index.html b/front/core/components/smart-table/index.html index 53d015dd4..ccac52b9f 100644 --- a/front/core/components/smart-table/index.html +++ b/front/core/components/smart-table/index.html @@ -23,7 +23,7 @@ vn-tooltip="Undo"> row.checked); - for (let row of checkedRows) - this.model.remove(row); + + for (let row of checkedRows) { + if (row.id) + this.model.remove(row); + else { + const index = this.model.data.indexOf(row); + this.model.data.splice(index, 1); + } + } if (this.autoSave) - this.save(); + this.saveAll(); } saveAll() {