@mjhls/mjh-framework 1.0.1091 → 1.0.1092

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # mjh-framework v. 1.0.1091
1
+ # mjh-framework v. 1.0.1092
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/mjh-framework.svg)](https://www.npmjs.com/package/mjh-framework) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4
4
 
@@ -416,11 +416,13 @@ var generateContentPlacements = function generateContentPlacements(issues, ignor
416
416
  issues && issues.length > 0 && issues.forEach(function (issue) {
417
417
  if (issue.taxonomyMapping && issue.taxonomyMapping.length > 0) {
418
418
  issue.taxonomyMapping && issue.taxonomyMapping.forEach(function (tm) {
419
- if (ignoreFilterIDs.indexOf(tm._id) < 0) {
420
- if (!contentPlacements.find(function (cp) {
421
- return cp.identifier === tm.identifier;
422
- }) && tm) {
423
- contentPlacements.push({ _id: tm._id, name: tm.name, identifier: tm.identifier });
419
+ if (tm) {
420
+ if (ignoreFilterIDs.indexOf(tm._id) < 0) {
421
+ if (!contentPlacements.find(function (cp) {
422
+ return cp.identifier === tm.identifier;
423
+ }) && tm) {
424
+ contentPlacements.push({ _id: tm._id, name: tm.name, identifier: tm.identifier });
425
+ }
424
426
  }
425
427
  }
426
428
  });
@@ -406,11 +406,13 @@ var generateContentPlacements = function generateContentPlacements(issues, ignor
406
406
  issues && issues.length > 0 && issues.forEach(function (issue) {
407
407
  if (issue.taxonomyMapping && issue.taxonomyMapping.length > 0) {
408
408
  issue.taxonomyMapping && issue.taxonomyMapping.forEach(function (tm) {
409
- if (ignoreFilterIDs.indexOf(tm._id) < 0) {
410
- if (!contentPlacements.find(function (cp) {
411
- return cp.identifier === tm.identifier;
412
- }) && tm) {
413
- contentPlacements.push({ _id: tm._id, name: tm.name, identifier: tm.identifier });
409
+ if (tm) {
410
+ if (ignoreFilterIDs.indexOf(tm._id) < 0) {
411
+ if (!contentPlacements.find(function (cp) {
412
+ return cp.identifier === tm.identifier;
413
+ }) && tm) {
414
+ contentPlacements.push({ _id: tm._id, name: tm.name, identifier: tm.identifier });
415
+ }
414
416
  }
415
417
  }
416
418
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.1091",
3
+ "version": "1.0.1092",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",