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

Unable to load saved queries when alwaysOn filters are empty #7784

Closed
mbryk opened this issue Jun 3, 2022 · 1 comment · Fixed by #7786
Closed

Unable to load saved queries when alwaysOn filters are empty #7784

mbryk opened this issue Jun 3, 2022 · 1 comment · Fixed by #7786
Assignees
Labels

Comments

@mbryk
Copy link

mbryk commented Jun 3, 2022

What you were expecting:
I have an "alwaysOn" text filter.

When the filter is not empty, the "Add Filter" dropdown is displayed, allowing me to save the current filter as a query, or load a previously saved query.

Screen Shot 2022-06-03 at 10 44 38 AM

When the filter is empty however, the "Add Filter" dropdown is not displayed, meaning I can't load any previously saved queries.

Screen Shot 2022-06-03 at 10 45 33 AM

Shouldn't the "Add Filter" dropdown always be displayed, if previously saved queries exist?

Lastly, it would be easiest if I could hide the new "Save current query" functionality from the Filter dropdown and avoid this altogether, but I can't see any information in the documentation on how to do that. It only says: "It’s enabled by default for the Filter Button/Form combo" without any information on how to disable it. Skimming through the code here, it seems like it's not possible.

  • React-admin version: 4.1
@fzaninotto
Copy link
Member

Confirmed, thanks.

There is indeed no API to disable saved queries in <List filters>. You'll have to implement your own filter for that.

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

Successfully merging a pull request may close this issue.

2 participants