@mjhls/mjh-framework 1.0.977-docgroup-test-v2 → 1.0.977-docgroup-test-v3
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/dist/cjs/View.js +7 -2
- package/dist/esm/View.js +7 -2
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -165,8 +165,13 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
165
165
|
if (article.documentGroup && article.documentGroup.isShow !== false && article.documentGroup.isSeries !== true) {
|
|
166
166
|
mediaSeriesGroup = article.documentGroup;
|
|
167
167
|
}
|
|
168
|
-
if (!article.documentGroup && article.documentGroupMapping
|
|
169
|
-
|
|
168
|
+
if (!article.documentGroup && article.documentGroupMapping) {
|
|
169
|
+
for (var i = 0; i < documentGroupMapping.length; i++) {
|
|
170
|
+
if (article.documentGroupMapping[i].isShow !== false && article.documentGroupMapping[i].isSeries !== true) {
|
|
171
|
+
mediaSeriesGroup = article.documentGroupMapping[i];
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
170
175
|
}
|
|
171
176
|
|
|
172
177
|
if (!mediaSeriesGroup) {
|
package/dist/esm/View.js
CHANGED
|
@@ -154,8 +154,13 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
154
154
|
if (article.documentGroup && article.documentGroup.isShow !== false && article.documentGroup.isSeries !== true) {
|
|
155
155
|
mediaSeriesGroup = article.documentGroup;
|
|
156
156
|
}
|
|
157
|
-
if (!article.documentGroup && article.documentGroupMapping
|
|
158
|
-
|
|
157
|
+
if (!article.documentGroup && article.documentGroupMapping) {
|
|
158
|
+
for (var i = 0; i < documentGroupMapping.length; i++) {
|
|
159
|
+
if (article.documentGroupMapping[i].isShow !== false && article.documentGroupMapping[i].isSeries !== true) {
|
|
160
|
+
mediaSeriesGroup = article.documentGroupMapping[i];
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
159
164
|
}
|
|
160
165
|
|
|
161
166
|
if (!mediaSeriesGroup) {
|