Skip to content

Commit

Permalink
fix(ripple-nuxt-tide): 🐛 check for presence of title to prevent middl…
Browse files Browse the repository at this point in the history
…eware running out of order (#1212)
  • Loading branch information
waitingallday committed Jun 17, 2022
1 parent 1e90470 commit 389d835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ripple-nuxt-tide/lib/middleware/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { breadcrumbs } from '@dpc-sdp/ripple-nuxt-tide/lib/core/breadcrumbs'

// Add breadcrumbs to page data
export default (context, pageData) => {
if (pageData.tidePage && pageData.tidePage.path) {
if (pageData.tidePage && pageData.tidePage.path && pageData.tidePage.appPageTitle) {
const path = pageData.tidePage.path ? pageData.tidePage.path.alias : context.route.path
pageData.tidePage.breadcrumbs = breadcrumbs(path, pageData.tidePage.appPageTitle, context.store.state.tide.siteData.hierarchicalMenus.menuMain)
}
Expand Down

0 comments on commit 389d835

Please sign in to comment.