mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 12:10:39 +01:00
fix: row loses internal id after cell update
This commit is contained in:
parent
9a7cd90d5c
commit
854472c7a3
@ -319,8 +319,6 @@ export default {
|
||||
},
|
||||
updateField (payload, row) {
|
||||
const orgRow = this.localResults.find(lr => lr._id === row._id);
|
||||
delete row._id;
|
||||
delete orgRow._id;
|
||||
|
||||
Object.keys(orgRow).forEach(key => { // remap the row
|
||||
if (orgRow[key] instanceof Date && moment(orgRow[key]).isValid()) { // if datetime
|
||||
|
@ -23,6 +23,8 @@ export default class {
|
||||
}
|
||||
|
||||
static deleteTableRows (params) {
|
||||
delete params.row._id;
|
||||
delete params.orgRow._id;
|
||||
return ipcRenderer.invoke('delete-table-rows', params);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user