Skip to content

Commit

Permalink
Fix regression for placeholder and search by author
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi committed Jun 4, 2024
1 parent e05c5ce commit 44ef69b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ const init = () => {
sortPeekData(sortBy.value)
loading.value = false
homeViewMode.value = Storage.getHomeViewMode()
if (filterBy.value) {
searchPlaceHolder.value = filterBy.value
}
}
const loadingImage = getImageUrl("loading")
Expand Down Expand Up @@ -186,7 +189,7 @@ const makeSearch = () => {
}
break
case "author" :
if (item.tags && item.tags.join(" ").toLowerCase().includes(searchVal)) {
if (item.authorName.toLowerCase().includes(searchVal)) {
searchResultBlog.value.push(item)
}
break
Expand Down

0 comments on commit 44ef69b

Please sign in to comment.