mirror of
https://github.com/Fabio286/antares.git
synced 2025-04-22 05:57:25 +02: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) {
|
updateField (payload, row) {
|
||||||
const orgRow = this.localResults.find(lr => lr._id === row._id);
|
const orgRow = this.localResults.find(lr => lr._id === row._id);
|
||||||
delete row._id;
|
|
||||||
delete orgRow._id;
|
|
||||||
|
|
||||||
Object.keys(orgRow).forEach(key => { // remap the row
|
Object.keys(orgRow).forEach(key => { // remap the row
|
||||||
if (orgRow[key] instanceof Date && moment(orgRow[key]).isValid()) { // if datetime
|
if (orgRow[key] instanceof Date && moment(orgRow[key]).isValid()) { // if datetime
|
||||||
|
@ -23,6 +23,8 @@ export default class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static deleteTableRows (params) {
|
static deleteTableRows (params) {
|
||||||
|
delete params.row._id;
|
||||||
|
delete params.orgRow._id;
|
||||||
return ipcRenderer.invoke('delete-table-rows', params);
|
return ipcRenderer.invoke('delete-table-rows', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user