File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
galasa-ui/src/components/test-runs/test-run-details/3270Tab Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -116,11 +116,13 @@ export default function TableOfScreenshots({
116116 // Highlight and display first element when the page loads, unless already set.
117117 const highlightFirstRowOnPageLoad = ( ) => {
118118 if ( ! highlightedRowId && filteredRows [ 0 ] ) {
119-
120119 const url = new URL ( window . location . href ) ;
121120 const terminalScreen = url . searchParams . get ( 'terminalScreen' ) ;
122121
123- if ( terminalScreen && filteredRows . find ( ( filteredRow ) => filteredRow . id === terminalScreen ) ) {
122+ if (
123+ terminalScreen &&
124+ filteredRows . find ( ( filteredRow ) => filteredRow . id === terminalScreen )
125+ ) {
124126 setHighlightedRowId ( terminalScreen ) ;
125127 } else {
126128 setHighlightedRowId ( filteredRows [ 0 ] . id ) ;
You can’t perform that action at this time.
0 commit comments