From fa730e90bbcdcd06cff9a644247aef53a320f1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Thu, 14 Dec 2023 10:51:18 +0100 Subject: [PATCH] DataViews: fix bug on operators count for table layout (#57048) --- packages/dataviews/src/view-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dataviews/src/view-table.js b/packages/dataviews/src/view-table.js index 3f5891f076791e..008bd9f02c7022 100644 --- a/packages/dataviews/src/view-table.js +++ b/packages/dataviews/src/view-table.js @@ -59,7 +59,7 @@ function HeaderMenu( { field, view, onChangeView } ) { const operators = columnOperators.filter( ( operator ) => [ OPERATOR_IN, OPERATOR_NOT_IN ].includes( operator ) ); - if ( operators.length >= 0 ) { + if ( operators.length > 0 ) { filter = { field: field.id, operators,