mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	Prevent "null" from being displayed as part units
This commit is contained in:
		| @@ -500,6 +500,11 @@ function duplicateBom(part_id, options={}) { | ||||
|  */ | ||||
| function partStockLabel(part, options={}) { | ||||
|  | ||||
|     // Prevent literal string 'null' from being displayed | ||||
|     if (part.units == null) { | ||||
|         part.units = ''; | ||||
|     } | ||||
|  | ||||
|     if (part.in_stock) { | ||||
|         // There IS stock available for this part | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user