Skip to content

Commit

Permalink
Remove all from the element list
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 15, 2023
1 parent e9c62fb commit fb601d2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/edit-site/src/components/dataviews/add-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@ export default function AddFilter( { fields, view, onChangeView } ) {
field: field.id,
name: field.header,
operator: filter,
elements: [
{
value: '',
label: __( 'All' ),
},
...( field.elements || [] ),
],
elements: field.elements || [],
isVisible: view.filters.some(
( f ) => f.field === field.id && f.operator === filter
),
Expand Down

0 comments on commit fb601d2

Please sign in to comment.