mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	- Retain data when updating a single record
- Fixes https://github.com/inventree/InvenTree/issues/8693
(cherry picked from commit 1910612725)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
			
			
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							3ac49441ca
						
					
				
				
					commit
					b57d035f7f
				
			| @@ -167,7 +167,10 @@ export function useTable(tableName: string): TableState { | ||||
|       const index = _records.findIndex((r) => r.pk === record.pk); | ||||
|  | ||||
|       if (index >= 0) { | ||||
|         _records[index] = record; | ||||
|         _records[index] = { | ||||
|           ..._records[index], | ||||
|           ...record | ||||
|         }; | ||||
|       } else { | ||||
|         _records.push(record); | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user