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 search by tag and author #126

Merged
merged 1 commit into from
May 31, 2024
Merged

Fix search by tag and author #126

merged 1 commit into from
May 31, 2024

Conversation

SagarGi
Copy link
Contributor

@SagarGi SagarGi commented May 30, 2024

Description

This PR fixes the search by tag or author, when search result is empty and then we again do a valid search then the result is empty again. This was because we are depending upon the peekData which consist of all the blog metadata, and it was dynamically used such that once it become empty it always becomes empty unless the search is empty.

This PR saves the searched result value in a separate variable so that the peekData becomes independent to the searched result value.

Fixes: #124

@koebel koebel changed the title Fix search by tag and auther Fix search by tag and author May 30, 2024
Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
Copy link
Contributor

@koebel koebel left a comment

Choose a reason for hiding this comment

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

LGTM

src/views/HomeView.vue Show resolved Hide resolved
@nabim777
Copy link
Member

Manually tested LGTM

@nabim777 nabim777 merged commit 5a242e9 into master May 31, 2024
1 check passed
@nabim777 nabim777 deleted the fix/search branch May 31, 2024 08:57
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.

Search results can be empty even with valid search keywords
4 participants