Skip to content

Commit

Permalink
Merge pull request #3594 from brave/ca-5710-71
Browse files Browse the repository at this point in the history
[0.71.x] ensure topSites list rendering evaluate to `null` when its hidden
  • Loading branch information
bsclifton authored Oct 7, 2019
2 parents 63b8c1b + 944f03d commit b1fce73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/brave_new_tab_ui/containers/newTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class NewTabPage extends React.Component<Props, State> {
hideWidget={this.toggleShowClock}
menuPosition={'left'}
/>
{this.props.newTabData.gridSites.length && <List
{this.props.newTabData.gridSites.length ? <List
blockNumber={this.props.newTabData.gridSites.length}
textDirection={newTabData.textDirection}
showWidget={newTabData.showTopSites}
Expand All @@ -200,7 +200,7 @@ class NewTabPage extends React.Component<Props, State> {
/>
)
}
</List>}
</List> : null}
{
this.props.newTabData.showSiteRemovalNotification
? <SiteRemovalNotification actions={actions} />
Expand Down

0 comments on commit b1fce73

Please sign in to comment.