mirror of
https://github.com/Fabio286/antares.git
synced 2024-12-25 08:20:39 +01:00
fix(UI): table rows lose internal id after an update
This commit is contained in:
parent
ddfb713124
commit
76c5c0c680
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user