Skip to content

Commit

Permalink
Remove filter from list if it is being used
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 15, 2023
1 parent c10be61 commit e9c62fb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/edit-site/src/components/dataviews/add-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,7 @@ export default function AddFilter( { fields, view, onChangeView } ) {
>
{ filters.map( ( filter ) => {
if ( filter.isVisible ) {
return (
<DropdownMenuItemV2
key={ filter.field }
disabled={ true }
>
{ filter.name }
</DropdownMenuItemV2>
);
return null;
}

return (
Expand Down

0 comments on commit e9c62fb

Please sign in to comment.