mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Various small code quality cleanups (#7626)
* fix possible access to None value
* fix possible access to empty valie
* fix possible access to empty value
* define exception
* remove old todo
* fix trigger on none
* merge condition
* remove empty object pattern
* fix typo
* fix usage of var
* add missing import
* use for of itterator instead
* use let instead of var
* move declaration to ensure logger is accessible
* Revert "remove empty object pattern"
This reverts commit 4701cc97ec.
			
			
This commit is contained in:
		| @@ -20,8 +20,12 @@ export function CopyButton({ | ||||
|           size="compact-md" | ||||
|         > | ||||
|           <IconCopy size={10} /> | ||||
|           {label && <div> </div>} | ||||
|           {label && label} | ||||
|           {label && ( | ||||
|             <> | ||||
|               <div> </div> | ||||
|               {label} | ||||
|             </> | ||||
|           )} | ||||
|         </Button> | ||||
|       )} | ||||
|     </MantineCopyButton> | ||||
|   | ||||
| @@ -112,7 +112,8 @@ export function GroupTable() { | ||||
|       }), | ||||
|       RowDeleteAction({ | ||||
|         onClick: () => { | ||||
|           setSelectedGroup(record.pk), deleteGroup.open(); | ||||
|           setSelectedGroup(record.pk); | ||||
|           deleteGroup.open(); | ||||
|         } | ||||
|       }) | ||||
|     ]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user