Skip to content

Commit 8f8f8ff

Browse files
committed
Only first search term is showed
1 parent 29b5a49 commit 8f8f8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinkDotNet.Blog.Web/Features/Search/SearchPage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
private IList<BlogPost> blogPosts = new List<BlogPost>();
2121

22-
protected override async Task OnInitializedAsync()
22+
protected override async Task OnParametersSetAsync()
2323
{
2424
var term = Uri.UnescapeDataString(SearchTerm);
2525
blogPosts = (await BlogPostRepository.GetAllAsync(t => t.IsPublished && (t.Title.Contains(term)

0 commit comments

Comments
 (0)