Skip to content
Snippets Groups Projects

Fix EnumEditQuantity with suggestions

Merged Mohammad Nakhaee requested to merge fix_on_EnumWithSuggestions into v1.1.0
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -30,7 +30,7 @@ export const EnumEditQuantity = React.memo((props) => {
}
}, [onChange])
if (quantityDef.type === 'str' || quantityDef.type === undefined) {
if ((quantityDef.type?.type_kind === 'python' && quantityDef.type?.type_data === 'str') || quantityDef.type === undefined) {
return <AutoComplete
freeSolo
options={suggestions}
Loading