Skip to content

Commit

Permalink
DataViews: fix bug on operators count for table layout (#57048)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored and artemiomorales committed Jan 4, 2024
1 parent 370d8d4 commit fa730e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataviews/src/view-table.js
Original file line number Diff line number Diff line change
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 fa730e9

Please sign in to comment.