@mjhls/mjh-framework 1.0.977-docgroup-test-v2 → 1.0.977-docgroup-test-v4

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 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 && article.documentGroupMapping[0] && article.documentGroupMapping[0].isShow !== false && article.documentGroupMapping[0].isSeries !== true) {
169
- mediaSeriesGroup = article.documentGroupMapping[0];
168
+ if (!article.documentGroup && article.documentGroupMapping) {
169
+ for (var i = 0; i < article.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 && article.documentGroupMapping[0] && article.documentGroupMapping[0].isShow !== false && article.documentGroupMapping[0].isSeries !== true) {
158
- mediaSeriesGroup = article.documentGroupMapping[0];
157
+ if (!article.documentGroup && article.documentGroupMapping) {
158
+ for (var i = 0; i < article.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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.977-docgroup-test-v2",
3
+ "version": "1.0.977-docgroup-test-v4",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",