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.
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