Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
raulg committed Apr 23, 2019
1 parent 990d369 commit cf3f94e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ const RenderBody = ({ home }) => (
);

export default ({ data }) => {
// Required check for no data being returned
const doc = data.prismic.allHomepages.edges.slice(0,1).pop();
if(!doc) return null;

Expand Down

0 comments on commit cf3f94e

Please sign in to comment.