Skip to content

Commit

Permalink
Expands warning sections by default
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 committed Dec 22, 2023
1 parent 8cff175 commit ccbbc48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/LogViewer/LogAccordion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const LogAccordion = forwardRef(
setScrollHidden(true);
}
}
if (hasWarning) {
setVisibility(true);
}
}, [ref, visibility, scrollHidden]);

const hasWarning = metadata[1] === true;
Expand Down

0 comments on commit ccbbc48

Please sign in to comment.