@infrab4a/connect-angular 5.2.1-beta.4 → 5.2.1-beta.5

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.
@@ -1738,11 +1738,13 @@ 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
+ // const orderedId = productIds.filter((product) => limitedProductId.includes(product))
1747
+ const orderedId = productIds.filter((product) => limitedProductId.some((p) => p === product));
1746
1748
  console.log('orderedId', orderedId);
1747
1749
  return this.getDetailedProducts(orderedId, totalResult, fieldsHelper);
1748
1750
  }