diff --git a/src/components/sequencing/form/EnumEditor.svelte b/src/components/sequencing/form/EnumEditor.svelte index 49cbce0a79..b237f7bcbf 100644 --- a/src/components/sequencing/form/EnumEditor.svelte +++ b/src/components/sequencing/form/EnumEditor.svelte @@ -18,7 +18,7 @@ let value: string; $: value = initVal; - $: enumValues = commandDictionary?.enumMap[argDef.enum_name]?.values?.map(v => v.symbol) ?? argDef.range ?? []; + $: enumValues = argDef.range ?? commandDictionary?.enumMap[argDef.enum_name]?.values?.map(v => v.symbol) ?? []; $: isValueInEnum = !!enumValues.find(ev => ev === value); $: setInEditor(value); $: options = enumValues.map(ev => ({