mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: table row loses internal id after cell update
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user