Skip to content

Commit dab44f7

Browse files
committed
Add message for zero search results
1 parent 4882d42 commit dab44f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Azure.AISearch.WebApp/Pages/Shared/_SearchResponse.cshtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@
4040
}
4141
}
4242

43-
@if (Model.SearchResults.Any())
43+
@if (!Model.SearchResults.Any())
44+
{
45+
<div class="mt-3 alert alert-info">Sorry, there are no results for your search query!</div>
46+
}
47+
else
4448
{
4549
<h4 class="mt-3">@Model.SearchResults.ToCountString("result")</h4>
4650
<ol class="list-group">

0 commit comments

Comments
 (0)