1
1
mirror of https://github.com/Fabio286/antares.git synced 2024-12-25 00:10:41 +01:00

fix(UI): table rows lose internal id after an update

This commit is contained in:
Fabio Di Stasio 2021-03-09 18:07:48 +01:00
parent ddfb713124
commit 76c5c0c680

View File

@ -289,14 +289,15 @@ export default {
this.resizeResults();
},
updateField (payload, row) {
delete row._id;
const localRow = Object.assign({}, row);
delete localRow._id;
const params = {
primary: this.primaryField.name,
schema: this.getSchema(this.resultsetIndex),
table: this.getTable(this.resultsetIndex),
id: this.getPrimaryValue(row),
row,
id: this.getPrimaryValue(localRow),
localRow,
...payload
};
this.$emit('update-field', params);