Skip to content

Commit

Permalink
Fix bug on operators count
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Dec 14, 2023
1 parent d9ea8d0 commit 2687f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataviews/src/view-table.js
Expand Up @@ -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,
Expand Down

0 comments on commit 2687f9d

Please sign in to comment.