1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: cell update soft reload doesn't apply changes

This commit is contained in:
2020-09-14 11:08:11 +02:00
parent 78965d23e3
commit 1b04b216b2
2 changed files with 9 additions and 6 deletions

View File

@ -257,10 +257,13 @@ export default {
}
},
applyUpdate (params) {
const { primary, id, field, content } = params;
const { primary, id, field, table, content } = params;
this.localResults = this.localResults.map(row => {
if (row[primary] === id)
if (row[primary] === id)// only fieldName
row[field] = content;
else if (row[`${table}.${primary}`] === id)// table.fieldName
row[`${table}.${field}`] = content;
return row;
});