Skip to content

Commit

Permalink
fixed issue where page crashed with no overview
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNawrocki committed Nov 5, 2024
1 parent 9228447 commit 5fb3d68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/Breaking/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class BreakingLayout extends React.Component {
}}
>
<div id="one">
{utilities.buildArticleCard(this.props.eventSummary, "breakingOverview")}
{this.props.eventSummary && utilities.buildArticleCard(this.props.eventSummary, "breakingOverview")}
</div>
<InfiniteScroll
pageStart={1}
Expand Down Expand Up @@ -152,7 +152,7 @@ export default class BreakingLayout extends React.Component {
>
<div>
<div id="one">
{utilities.buildArticleCard(this.props.eventSummary, "breakingOverview")}
{this.props.eventSummary && utilities.buildArticleCard(this.props.eventSummary, "breakingOverview")}
</div>
<InfiniteScroll
pageStart={1}
Expand Down Expand Up @@ -206,7 +206,7 @@ export default class BreakingLayout extends React.Component {
*/}
<div id="one" style={{position: "sticky", top: "70px"}}>
{utilities.buildArticleCard(this.props.eventSummary, "breakingOverview")}
{this.props.eventSummary && utilities.buildArticleCard(this.props.eventSummary, "breakingOverview")}
</div>
</div>
<div
Expand Down

0 comments on commit 5fb3d68

Please sign in to comment.