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