Skip to content
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

fix(plugin-import-export): hide invalid sortBy options #11676

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akhrarovsaid
Copy link
Contributor

@akhrarovsaid akhrarovsaid commented Mar 13, 2025

What?

This PR aims to prevent runtime 500-level errors when using plugin-import-export by omitting invalid options such as arrays and blocks from the SortyBy component. This PR also omits the sort when it is false-y.

Why?

To prevent errors and show valid sortable fields to sort by.

How?

Omitting the sort when it is false-y from the preview, and omitting invalid sortBy options.

Demo (After):

Pages---Payload.webm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant