DataViews: sort asc/desc in view config should be hidden if no field is sortable #64816
Labels
[Feature] DataViews
Work surrounding upgrading and evolving views in the site editor and beyond
[Package] DataViews
/packages/dataviews
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When no field is sortable, the view config should hide the control to sort by ascending/descending order, like it does to sort by field.
Step-by-step reproduction instructions
npm run storybook:dev
).enableSorting
tofalse
.Screenshots, screen recording, code snippet
What I expected was that the asc/desc control was hidden but it's not:
The text was updated successfully, but these errors were encountered: