fix: table row loses internal id after cell update

This commit is contained in:
Fabio Di Stasio 2021-06-02 11:58:34 +02:00
parent faa799c8ea
commit 66227569f4
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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);
} }