File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/site/stages/build/drupal Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
const _ = require ( 'lodash' ) ;
4
4
const moment = require ( 'moment' ) ;
5
5
const liquid = require ( 'tinyliquid' ) ;
6
+ const { logDrupal : log } = require ( './utilities-drupal' ) ;
6
7
const {
7
8
createEntityUrlObj,
8
9
createFileObj,
@@ -198,11 +199,11 @@ function addGetUpdatesFields(page, pages) {
198
199
! regionPageUrlPath &&
199
200
page . entityUrl . breadcrumb [ 1 ] ?. text !== 'Manila VA Clinic'
200
201
) {
201
- throw new Error (
202
- `CMS error while building breadcrumbs: "${ page . entityUrl . path } " is missing reference to a parent or grandparent.` ,
202
+ log (
203
+ `WARNING: CMS error while building breadcrumbs: "${ page . entityUrl . path } " is missing reference to a parent or grandparent.` ,
203
204
) ;
204
205
}
205
-
206
+ // If regionPageUrlPath is empty, this will simply not find a region page, and this function will complete.
206
207
const regionPage = pages . find ( p => p . entityUrl . path === regionPageUrlPath ) ;
207
208
208
209
if ( regionPage ) {
You can’t perform that action at this time.
0 commit comments