Skip to content

Commit

Permalink
fix: "listing type" should be a sort option by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Dec 16, 2020
1 parent f5bcdfe commit 684d657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/sidebar-query-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class QueryControls extends Component {
}

// Enable listing type option only if there's more than one listing type in the list.
if ( 'any' === type ) {
if ( 'any' === type || ! type ) {
sortOptions.push( { label: __( 'Listing Type', 'newspack-listings' ), value: 'type' } );
}

Expand Down

0 comments on commit 684d657

Please sign in to comment.