Skip to content

Commit 4c96046

Browse files
committed
fix: option can not be an empty string
1 parent c92e720 commit 4c96046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/components/DynamicParameter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
392392
</SelectTrigger>
393393
<SelectContent>
394394
{parameter.options.map((option) => (
395-
<SelectItem key={option.value.value} value={option.value.value}>
395+
<SelectItem key={option.value.value} value={option.value.value || "??"}>
396396
<OptionDisplay option={option} />
397397
</SelectItem>
398398
))}
@@ -499,7 +499,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
499499
>
500500
<RadioGroupItem
501501
id={`${id}-${option.value.value}`}
502-
value={option.value.value}
502+
value={option.value.value || "??"}
503503
/>
504504
<Label
505505
htmlFor={`${id}-${option.value.value}`}

0 commit comments

Comments
 (0)