From e9c62fbcd420d7bb5025d4ae0293c7791a2c356d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Wed, 15 Nov 2023 11:39:00 +0100 Subject: [PATCH] Remove filter from list if it is being used --- .../edit-site/src/components/dataviews/add-filter.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/edit-site/src/components/dataviews/add-filter.js b/packages/edit-site/src/components/dataviews/add-filter.js index 66b4bcc2edb01d..7378b7e31abd6b 100644 --- a/packages/edit-site/src/components/dataviews/add-filter.js +++ b/packages/edit-site/src/components/dataviews/add-filter.js @@ -73,14 +73,7 @@ export default function AddFilter( { fields, view, onChangeView } ) { > { filters.map( ( filter ) => { if ( filter.isVisible ) { - return ( - - { filter.name } - - ); + return null; } return (