Skip to content

Commit

Permalink
VACMS 19273 - menu exception manila and add to menus download (#2303)
Browse files Browse the repository at this point in the history
* region update
* test PR
* remove console log
  • Loading branch information
eselkin authored Oct 9, 2024
1 parent 4bd5c32 commit 895da16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/site/navigation/facility_sidebar_nav.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
{% assign deepLinks = deepLinksObj.link.links %}

{% assign filteredSidebarData = sidebarData | filterSidebarData: isPreview %}

<script nonce="**CSP_NONCE**" type="text/javascript">
window.sideNav = {
rootPath: "{{ entityUrl.path }}/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const FACILITY_MENU_NAMES = [
'va-spokane-health-care',
'va-walla-walla-health-care',
// VISN 21
'manila-va-clinic',
'va-central-california-health-car',
'va-northern-california-health-ca',
'va-pacific-islands-health-care',
Expand Down
6 changes: 4 additions & 2 deletions src/site/stages/build/drupal/health-care-region.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ function createHealthCareRegionListPages(page, drupalPagePath, files) {
*/
function addGetUpdatesFields(page, pages) {
const regionPageUrlPath = page.entityUrl.breadcrumb[1]?.url?.path;

if (!regionPageUrlPath) {
if (
!regionPageUrlPath &&
page.entityUrl.breadcrumb[1]?.text !== 'Manila VA Clinic'
) {
throw new Error(
`CMS error while building breadcrumbs: "${page.entityUrl.path}" is missing reference to a parent or grandparent.`,
);
Expand Down

0 comments on commit 895da16

Please sign in to comment.