@infrab4a/connect-angular 5.2.1-beta.4 → 5.2.1-beta.6
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/esm2020/services/catalog/strategies/term-search.strategy.mjs +6 -4
- package/fesm2015/infrab4a-connect-angular.mjs +5 -3
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +5 -3
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1738,13 +1738,15 @@ class TermSearchStrategy {
|
|
|
1738
1738
|
console.log('productIdsStock', productIdsStock);
|
|
1739
1739
|
const productIdsStockOut = productIds.filter((product) => stockOut.some((result) => result.id === product));
|
|
1740
1740
|
console.log('productIdsStockOut', productIdsStockOut);
|
|
1741
|
+
console.log('concat', productIdsStock.concat(productIdsStockOut));
|
|
1741
1742
|
const limitedProductId = productIdsStock
|
|
1742
1743
|
.concat(productIdsStockOut)
|
|
1743
1744
|
.slice(limits.offset, limits.offset + limits.limit);
|
|
1744
1745
|
console.log('limitedProductId', limitedProductId);
|
|
1745
|
-
const orderedId = productIds.filter((product) => limitedProductId.includes(product))
|
|
1746
|
-
|
|
1747
|
-
|
|
1746
|
+
// const orderedId = productIds.filter((product) => limitedProductId.includes(product))
|
|
1747
|
+
// const orderedId = productIds.filter((product) => limitedProductId.some((p) => p === product))
|
|
1748
|
+
// console.log('orderedId', orderedId)
|
|
1749
|
+
return this.getDetailedProducts(limitedProductId, totalResult, fieldsHelper);
|
|
1748
1750
|
}
|
|
1749
1751
|
async getDetailedProducts(orderedId, totalResult, fieldsHelper) {
|
|
1750
1752
|
const productCatalog = this.repositoryService.getProductCatalog();
|