Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 3d44069

Browse files
committed
Revert (#6166) (#6253)
Revert "Prevent Featured Product block from breaking when product is out of stock + hidden from catalog (#6166)" This reverts commit 3c0e0af (cherry picked from commit 908526e)
1 parent 4637c99 commit 3d44069

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

assets/js/editor-components/utils/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const getProductsRequests = ( {
2525
const defaultArgs = {
2626
per_page: isLargeCatalog ? 100 : 0,
2727
catalog_visibility: 'any',
28-
stock_status: [ 'instock', 'outofstock', 'onbackorder' ],
2928
search,
3029
orderby: 'title',
3130
order: 'asc',

assets/js/hocs/with-product-variations.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const withProductVariations = createHigherOrderComponent(
124124
p.variations &&
125125
p.variations.find( ( { id } ) => id === variationId )
126126
);
127-
return parentProduct[ 0 ]?.id;
127+
return parentProduct[ 0 ].id;
128128
}
129129

130130
getExpandedProduct() {
@@ -186,7 +186,6 @@ const withProductVariations = createHigherOrderComponent(
186186
showVariations: false,
187187
};
188188
}
189-
190189
return WrappedComponent;
191190
},
192191
'withProductVariations'

0 commit comments

Comments
 (0)