Skip to content

Commit

Permalink
fix: skip null query
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Jan 31, 2024
1 parent 1a14e19 commit 3dec778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mangarr.Stack/Pages/Manga/Link/ContentSource.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private async Task SearchById()
titlesToSearch.Add(media.Title.Romaji);
titlesToSearch.Add(media.Title.Native);
titlesToSearch.AddRange(media.Synonyms);
titlesToSearch = titlesToSearch.Distinct().ToList();
titlesToSearch = titlesToSearch.Distinct().Where(x => !string.IsNullOrEmpty(x)).ToList();

List<SearchResultItem> allSearchResults = new();

Expand Down

0 comments on commit 3dec778

Please sign in to comment.