Skip to content

Commit

Permalink
Merge pull request #148 from dailybruin/Breaking-Feeds-hotfix
Browse files Browse the repository at this point in the history
fixed issue where page crashed with no overview
  • Loading branch information
EdNawrocki authored Nov 5, 2024
2 parents 8e76d6d + 5fb3d68 commit 8680f85
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 8680f85

Please sign in to comment.