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

Commit

Permalink
Update assets/js/blocks/stock-filter/block.js
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Roberts <[email protected]>
  • Loading branch information
grogou and opr authored Jul 27, 2021
1 parent 136c32d commit 27e0233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/blocks/stock-filter/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const { outofstock, ...otherStockStatusOptions } = getSetting(
const STOCK_STATUS_OPTIONS = hideOutOfStockItems
? otherStockStatusOptions
: { outofstock, ...otherStockStatusOptions };
// filter added to handle if there are slugs without a corresponding name defined.
// Filter added to handle if there are slugs without a corresponding name defined.
const initialOptions = Object.entries( STOCK_STATUS_OPTIONS )
.map( ( [ slug, name ] ) => ( { slug, name } ) )
.filter( ( status ) => !! status.name )
Expand Down

0 comments on commit 27e0233

Please sign in to comment.