File tree 1 file changed +3
-1
lines changed
gui/src/renderer/components/main-view
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,8 @@ export default function FeatureIndicators(props: FeatureIndicatorsProps) {
160
160
} , 0 ) ;
161
161
} ) ;
162
162
163
+ const sortedIndicators = [ ...featureIndicators . current ] . sort ( ( a , b ) => a - b ) ;
164
+
163
165
return (
164
166
< StyledAccordion expanded = { featureIndicatorsVisible && featureIndicators . current . length > 0 } >
165
167
< StyledFeatureIndicatorsContainer onClick = { props . expandIsland } $expanded = { props . expanded } >
@@ -170,7 +172,7 @@ export default function FeatureIndicators(props: FeatureIndicatorsProps) {
170
172
< StyledFeatureIndicatorsWrapper
171
173
ref = { featureIndicatorsContainerRef }
172
174
$expanded = { props . expanded } >
173
- { featureIndicators . current . sort ( ) . map ( ( indicator ) => (
175
+ { sortedIndicators . map ( ( indicator ) => (
174
176
< StyledFeatureIndicatorLabel
175
177
key = { indicator . toString ( ) }
176
178
data-testid = "feature-indicator"
You can’t perform that action at this time.
0 commit comments