From 71f57cdd0d3f92d03482cbab6912e0b25346f9e8 Mon Sep 17 00:00:00 2001 From: Victor Oliva Date: Wed, 23 Oct 2024 09:55:54 +0200 Subject: [PATCH] fix Enums becoming blank when there's a type annotation --- src/components/Select.tsx | 1 + src/pages/Extrinsics/EditCodec/CEnum.tsx | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Select.tsx b/src/components/Select.tsx index b7958d5..43f8816 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -33,6 +33,7 @@ export const SearchableSelect = ({ value={value} onChange={(value) => setValue(value)} onClose={() => setQuery("")} + immediate >
({ text: option, value: option }))} + value={value === NOTIN ? "" : value.type} + options={options.map((option) => ({ + text: option + getOptionType(option), + value: option, + }))} /> {!isComplexShape && inner}