@nice-digital/global-nav 7.1.1092 → 7.1.1094-GN-237-incorrect-anc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,7 +55,9 @@ function Nav(_ref) {
55
55
  // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find for support
56
56
  var activeService = null;
57
57
  var internalService = false;
58
- var servicesToDisplay = _services.default.external; //default to displaying external services.
58
+ var servicesToDisplay = _services.default.external.filter(function (service) {
59
+ return service.header === true;
60
+ }); // only display external services with header=true
59
61
  for (var i = 0; i < _services.default.internal.length; i++) {
60
62
  var internalRootLink = _services.default.internal[i];
61
63
  if (service && internalRootLink.id === service) {
@@ -59,9 +59,7 @@ function NavLinks(_ref) {
59
59
  className: _NavLinksModule.default.menuList,
60
60
  "aria-labelledby": "header-menu-button",
61
61
  ref: keydownRef,
62
- children: servicesToDisplay.filter(function (item) {
63
- return item.header;
64
- }).map(function (_ref2, index) {
62
+ children: servicesToDisplay.map(function (_ref2, index) {
65
63
  var host = _ref2.host,
66
64
  landingPath = _ref2.landingPath,
67
65
  id = _ref2.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/global-nav",
3
- "version": "7.1.1092",
3
+ "version": "7.1.1094-GN-237-incorrect-anc",
4
4
  "description": "Global header and footer components for NICE digital services",
5
5
  "main": "lib/index.js",
6
6
  "types": "./types.d.ts",