-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataViews: fix status filter upon switching the default views from the sidebar #55856
Conversation
Size Change: +1.35 kB (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in cd28877. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6769588517
|
( f ) => f.field === filter.id && f.operator === OPERATOR_IN | ||
)?.value; | ||
|
||
if ( ! activeValue ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not affecting us right now, but this would make zero value impossible to set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right maybe we can make a small change here and drop the ?.value;
from the line above and only do .value
in the rendering of the component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one, thanks! Pushed a fix.
Part of #55083
Follow-up to #55839
What?
Fixes an issue by which the "All" view in the sidebar doesn't update the status filter.
This is how it should behave:
Gravacao.do.ecra.2023-11-03.as.17.02.36.mov
Testing Instructions
At all points, the status filter should reflect the selected view.