Compare commits

...

2 Commits

Author SHA1 Message Date
blink-so[bot] 62592d2737 fix: biome formatting for optionMap 2026-03-06 15:10:23 +00:00
blink-so[bot] 9711308792 fix: include icon and description in multi-select default selected options
When building the selectedOptions for the multi-select parameter,
the code only mapped value and label but omitted icon and description.
This caused icons to not render for pre-selected items in the
MultiSelectCombobox badge. Removing and re-adding an item from the
dropdown worked because the onSelect handler pushes the full option
object (which includes icon).

Fix by looking up the full Option object from the already-mapped
options array instead of reconstructing a partial one.
2026-03-06 15:07:32 +00:00
@@ -391,16 +391,17 @@ const ParameterField: FC<ParameterFieldProps> = ({
disable: false,
}));
const optionMap = new Map(
parameter.options.map((opt) => [opt.value.value, opt.name]),
);
const optionMap = new Map(options.map((opt) => [opt.value, opt]));
const selectedOptions: Option[] = parsedValues.values.map((val) => {
return {
value: val,
label: optionMap.get(val) || val,
disable: false,
};
const matched = optionMap.get(val);
return (
matched ?? {
value: val,
label: val,
disable: false,
}
);
});
return (