JankariTech / blog

Blogposts from JankariTech
https://blog.jankaritech.com
GNU General Public License v3.0
10 stars 3 forks source link

Fix search by tag and author #126

Closed SagarGi closed 1 month ago

SagarGi commented 1 month ago

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: https://github.com/JankariTech/blog/issues/124

nabim777 commented 1 month ago

Manually tested LGTM