mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	fix choice field to fit stricter validation
This commit is contained in:
		@@ -31,8 +31,8 @@ export function ChoiceField({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return choices.map((choice) => {
 | 
					    return choices.map((choice) => {
 | 
				
			||||||
      return {
 | 
					      return {
 | 
				
			||||||
        value: choice.value,
 | 
					        value: choice.value.toString(),
 | 
				
			||||||
        label: choice.display_name
 | 
					        label: choice.display_name.toString()
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  }, [definition.choices]);
 | 
					  }, [definition.choices]);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user