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
1 changed files with 4 additions and 3 deletions

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);