diff --git a/packages/edit-site/src/components/dataviews/in-filter.js b/packages/edit-site/src/components/dataviews/in-filter.js index e1f3dcca4c8c92..d48bc6cc8143ab 100644 --- a/packages/edit-site/src/components/dataviews/in-filter.js +++ b/packages/edit-site/src/components/dataviews/in-filter.js @@ -9,10 +9,13 @@ import { const OPERATOR_IN = 'in'; export default ( { filter, view, onChangeView } ) => { - const activeValue = view.filters.find( + let activeValue = view.filters.find( ( f ) => f.field === filter.id && f.operator === OPERATOR_IN )?.value; + if ( ! activeValue ) { + activeValue = ''; + } return (