diff --git a/frontend/src/components/Select/Select.tsx b/frontend/src/components/Select/Select.tsx index 08096070..eefa29d7 100644 --- a/frontend/src/components/Select/Select.tsx +++ b/frontend/src/components/Select/Select.tsx @@ -77,31 +77,33 @@ const Select = (props: { value={item} itemID={`${props.config.id}__select-${item.name}`} > - {({ selected, active }) => ( - <> - - {props.config.displayedAttribute - ? item[props.config.displayedAttribute] - : item} - - - {selected ? ( + { + ({ selected, active }) => ( + <> - - ) : null} - - )} + + {(props?.selected?.id === item.id) ? ( + + + ) : null} + + ) + } ))}