We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd056f commit f497f3fCopy full SHA for f497f3f
src/MudBlazor.Docs/Shared/Appbar.razor.cs
@@ -120,8 +120,13 @@ public bool IsSearchDialogOpen
120
[Parameter]
121
public bool DisplaySearchBar { get; set; } = true;
122
123
- private async void OnSearchResult(ApiLinkServiceEntry entry)
+ private async void OnSearchResult(ApiLinkServiceEntry? entry)
124
{
125
+ if (entry is null)
126
+ {
127
+ return;
128
+ }
129
+
130
NavigationManager.NavigateTo(entry.Link);
131
await Task.Delay(1000);
132
await _searchAutocomplete.ClearAsync();
0 commit comments