Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #881 from artsy/sos-artist-rail-sanity-check
Browse files Browse the repository at this point in the history
[home] do not render artist rail if it does not have artists
  • Loading branch information
orta authored Dec 12, 2017
2 parents 58d84f1 + f058c42 commit 84d18a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

### Master

- Don't load an ArtistRail if it doesn't have any artists - sarah
- Refetch data when user re-enters Inbox tab - luc
- Send event from view controller to react component when tab changes - luc
- Allow passing a set of Artworks and an index to load to Eigen when clicking on
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Components/Home/ArtistRails/ArtistRail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class ArtistRail extends React.Component<Props, State> {
}

render() {
if (this.state.loadFailed) {
if (this.state.loadFailed || !this.state.artists.length) {
return null
}

Expand Down

0 comments on commit 84d18a3

Please sign in to comment.