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 Dec 14, 2023
1 parent 04bc1ca commit 702fd1b
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

1 comment on commit 702fd1b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 702fd1b.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7207164744
📝 Reported issues:

Please sign in to comment.