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:
@ -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;
|
||||
});
|
||||
|
Reference in New Issue
Block a user