1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: show segment details in targetting (#6640)

Preview (eye icon) on a segment in "targetting" when creating or editing
a strategy now corectly shows details of a segment.

Previously it was not showing constraints present in this segment
This commit is contained in:
Tymoteusz Czech 2024-03-22 10:14:19 +01:00 committed by GitHub
parent 86f229a69d
commit ccb067c69c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,11 @@ export const SegmentItem: VFC<ISegmentItemProps> = ({
const [isOpen, setIsOpen] = useState(isExpanded || false);
return (
<StyledAccordion className='segment-accordion' isDisabled={disabled}>
<StyledAccordion
className='segment-accordion'
isDisabled={disabled}
expanded={isOpen}
>
<StyledAccordionSummary id={`segment-accordion-${segment.id}`}>
<DonutLarge
sx={(theme) => ({