fix Enums becoming blank when there's a type annotation
This commit is contained in:
@@ -33,6 +33,7 @@ export const SearchableSelect = <T,>({
|
||||
value={value}
|
||||
onChange={(value) => setValue(value)}
|
||||
onClose={() => setQuery("")}
|
||||
immediate
|
||||
>
|
||||
<div className="flex flex-row p-2 rounded border border-polkadot-200 text-white bg-black">
|
||||
<ComboboxInput
|
||||
|
||||
@@ -47,8 +47,11 @@ export const CEnum: EditEnum = ({
|
||||
onValueChanged({ type: selected, value })
|
||||
}
|
||||
}}
|
||||
value={value === NOTIN ? "" : value.type + getOptionType(value.type)}
|
||||
options={options.map((option) => ({ text: option, value: option }))}
|
||||
value={value === NOTIN ? "" : value.type}
|
||||
options={options.map((option) => ({
|
||||
text: option + getOptionType(option),
|
||||
value: option,
|
||||
}))}
|
||||
/>
|
||||
{!isComplexShape && inner}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user