From ce28ea2c00cf206f31be55a5af2f17c138e197f2 Mon Sep 17 00:00:00 2001 From: Dom Sip Date: Tue, 19 Apr 2022 18:52:11 +0100 Subject: [PATCH] clean console log --- packages/sfcc/src/api/operations/get-all-product-paths.ts | 3 --- packages/sfcc/src/api/operations/get-all-products.ts | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/sfcc/src/api/operations/get-all-product-paths.ts b/packages/sfcc/src/api/operations/get-all-product-paths.ts index 6a9ec7a0b..85dd4f597 100644 --- a/packages/sfcc/src/api/operations/get-all-product-paths.ts +++ b/packages/sfcc/src/api/operations/get-all-product-paths.ts @@ -32,9 +32,6 @@ export default function getAllProductPathsOperation({ if (searchResults.total) { products = normalizeSearchProducts(searchResults.hits) - } else { - // TODO: handle this better? - console.log('No results for search') } return { diff --git a/packages/sfcc/src/api/operations/get-all-products.ts b/packages/sfcc/src/api/operations/get-all-products.ts index 69b4538c4..4cb3db8d9 100644 --- a/packages/sfcc/src/api/operations/get-all-products.ts +++ b/packages/sfcc/src/api/operations/get-all-products.ts @@ -30,10 +30,8 @@ export default function getAllProductsOperation({ if (searchResults.total) { products = normalizeSearchProducts(searchResults.hits) - } else { - // TODO: handle this better? - console.log('No results for search') } + return { products: products, }