mirror of https://github.com/Fabio286/antares.git
fix: table row loses internal id after cell update
This commit is contained in:
parent
faa799c8ea
commit
66227569f4
|
@ -61,6 +61,8 @@ export default (connections) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.handle('update-table-cell', async (event, params) => {
|
ipcMain.handle('update-table-cell', async (event, params) => {
|
||||||
|
delete params.row._id;
|
||||||
|
|
||||||
try { // TODO: move to client classes
|
try { // TODO: move to client classes
|
||||||
let escapedParam;
|
let escapedParam;
|
||||||
let reload = false;
|
let reload = false;
|
||||||
|
|
|
@ -19,7 +19,6 @@ export default class {
|
||||||
}
|
}
|
||||||
|
|
||||||
static updateTableCell (params) {
|
static updateTableCell (params) {
|
||||||
delete params.row._id;
|
|
||||||
return ipcRenderer.invoke('update-table-cell', params);
|
return ipcRenderer.invoke('update-table-cell', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue