Skip to content

Commit

Permalink
fixed broken news
Browse files Browse the repository at this point in the history
closes #148
  • Loading branch information
oyilmaztekin committed Apr 12, 2019
1 parent aabb879 commit f97c142
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nested/pagedetaillayout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,19 @@ class PageDetailLayout extends Component {
url,
id
} = content;

const breadcrumbs = {
active: {
title: title,
url: url
},
cat: {
title: ancestors[0].title,
url: path
}
};
if(ancestors && ancestors.length < 0 && ancestors[0] && ancestors[0].title ){
breadcrumbs.cat.title = ancestors[0].title;
}

return (
<DFPSlotsProvider
Expand Down

0 comments on commit f97c142

Please sign in to comment.