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

Remove show all from search result if there's no results #762

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

InfiniteStash
Copy link
Collaborator

No description provided.

@InfiniteStash InfiniteStash merged commit b739d20 into stashapp:master Feb 26, 2024
2 checks passed
@InfiniteStash InfiniteStash deleted the search-show-all branch February 26, 2024 20:58
? [{ label: "Scenes", options: scenes }]
: [];
const showAll =
showAllLink && performerResults.length > 0 && sceneResults.length > 0
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should probably be:
const showAll = showAllLink && (performerResults.length > 0 || sceneResults.length > 0)

Right now if there are no performer results, but multiple scene results, I can't go to the main search results page to see which one I want, I have to pick one from the dropdown. If it's not the one I wanted, I have to re-type the search and choose another one from the dropdown, etc.

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

Successfully merging this pull request may close these issues.

2 participants