wt-front-shared 1.0.70 → 1.0.71
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.
|
@@ -6165,7 +6165,6 @@ const getStaticData = (contentType, subSection, where) => createSelector(getStat
|
|
|
6165
6165
|
let result = true;
|
|
6166
6166
|
Object.keys(where)
|
|
6167
6167
|
.forEach(whereItem => {
|
|
6168
|
-
// item[whereItem] is not Array
|
|
6169
6168
|
if (!Array.isArray(item[whereItem])) {
|
|
6170
6169
|
const fieldValue = item[whereItem];
|
|
6171
6170
|
if (!Array.isArray(where[whereItem])) {
|
|
@@ -6182,7 +6181,7 @@ const getStaticData = (contentType, subSection, where) => createSelector(getStat
|
|
|
6182
6181
|
result = item[whereItem].includes(where[whereItem]);
|
|
6183
6182
|
}
|
|
6184
6183
|
else {
|
|
6185
|
-
result = where[whereItem].
|
|
6184
|
+
result = where[whereItem].some(subItem => item[whereItem].includes(subItem));
|
|
6186
6185
|
}
|
|
6187
6186
|
}
|
|
6188
6187
|
});
|