@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.
|
|
1
|
+
# mjh-framework v. 1.0.1092
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](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 (
|
|
420
|
-
if (
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
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 (
|
|
410
|
-
if (
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
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
|
});
|