File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/components/conformance/ResultsDisplay Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ export default function ResultsDisplay(props: ResultsProps): JSX.Element {
90
90
props . state . version ,
91
91
newPath ,
92
92
props . state . ecmaScriptVersion ,
93
+ props . state . sortOption ,
93
94
) ,
94
95
} ) ;
95
96
} ;
@@ -105,6 +106,7 @@ export default function ResultsDisplay(props: ResultsProps): JSX.Element {
105
106
props . state . version ,
106
107
slicedPath ,
107
108
props . state . ecmaScriptVersion ,
109
+ props . state . sortOption ,
108
110
) ,
109
111
} ) ;
110
112
} ;
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ type SortProps = {
132
132
} ;
133
133
134
134
function SortingDropdown ( props : SortProps ) : JSX . Element {
135
- const [ sortValue , setSortValue ] = React . useState < string | undefined > ( ) ;
135
+ const [ sortValue , setSortValue ] = React . useState < string > ( props . sortValue ? props . sortValue : "alpha" ) ;
136
136
137
137
React . useEffect ( ( ) => {
138
138
setSortValue ( props . sortValue ) ;
You can’t perform that action at this time.
0 commit comments