@mjhls/mjh-framework 1.0.940 → 1.0.941
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.
|
@@ -419,10 +419,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
419
419
|
buildUsedTopicsArray = function buildUsedTopicsArray(seriesArray) {
|
|
420
420
|
var usedTopics = [];
|
|
421
421
|
for (var x = 0; x < seriesArray.length; x++) {
|
|
422
|
-
if (seriesArray[x].topicMapping) {
|
|
422
|
+
if (seriesArray[x].topicMapping && seriesArray[x].topicMapping.length > 0) {
|
|
423
423
|
seriesArray[x].topicMapping.forEach(function (topic) {
|
|
424
|
-
if (
|
|
425
|
-
usedTopics.
|
|
424
|
+
if (topic && topic._id) {
|
|
425
|
+
if (!usedTopics.includes(topic._id)) {
|
|
426
|
+
usedTopics.push(topic._id);
|
|
427
|
+
}
|
|
426
428
|
}
|
|
427
429
|
});
|
|
428
430
|
}
|
|
@@ -449,10 +449,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
449
449
|
buildUsedTopicsArray = function buildUsedTopicsArray(seriesArray) {
|
|
450
450
|
var usedTopics = [];
|
|
451
451
|
for (var x = 0; x < seriesArray.length; x++) {
|
|
452
|
-
if (seriesArray[x].topicMapping) {
|
|
452
|
+
if (seriesArray[x].topicMapping && seriesArray[x].topicMapping.length > 0) {
|
|
453
453
|
seriesArray[x].topicMapping.forEach(function (topic) {
|
|
454
|
-
if (
|
|
455
|
-
usedTopics.
|
|
454
|
+
if (topic && topic._id) {
|
|
455
|
+
if (!usedTopics.includes(topic._id)) {
|
|
456
|
+
usedTopics.push(topic._id);
|
|
457
|
+
}
|
|
456
458
|
}
|
|
457
459
|
});
|
|
458
460
|
}
|
|
@@ -412,10 +412,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
412
412
|
buildUsedTopicsArray = function buildUsedTopicsArray(seriesArray) {
|
|
413
413
|
var usedTopics = [];
|
|
414
414
|
for (var x = 0; x < seriesArray.length; x++) {
|
|
415
|
-
if (seriesArray[x].topicMapping) {
|
|
415
|
+
if (seriesArray[x].topicMapping && seriesArray[x].topicMapping.length > 0) {
|
|
416
416
|
seriesArray[x].topicMapping.forEach(function (topic) {
|
|
417
|
-
if (
|
|
418
|
-
usedTopics.
|
|
417
|
+
if (topic && topic._id) {
|
|
418
|
+
if (!usedTopics.includes(topic._id)) {
|
|
419
|
+
usedTopics.push(topic._id);
|
|
420
|
+
}
|
|
419
421
|
}
|
|
420
422
|
});
|
|
421
423
|
}
|
|
@@ -442,10 +442,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
442
442
|
buildUsedTopicsArray = function buildUsedTopicsArray(seriesArray) {
|
|
443
443
|
var usedTopics = [];
|
|
444
444
|
for (var x = 0; x < seriesArray.length; x++) {
|
|
445
|
-
if (seriesArray[x].topicMapping) {
|
|
445
|
+
if (seriesArray[x].topicMapping && seriesArray[x].topicMapping.length > 0) {
|
|
446
446
|
seriesArray[x].topicMapping.forEach(function (topic) {
|
|
447
|
-
if (
|
|
448
|
-
usedTopics.
|
|
447
|
+
if (topic && topic._id) {
|
|
448
|
+
if (!usedTopics.includes(topic._id)) {
|
|
449
|
+
usedTopics.push(topic._id);
|
|
450
|
+
}
|
|
449
451
|
}
|
|
450
452
|
});
|
|
451
453
|
}
|