Skip to content

Commit

Permalink
hotfix category selector not working with query string
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Jul 29, 2024
1 parent b6d88ed commit 510eb70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/web/Jordnaer/Features/Category/CategorySelector.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
MultiSelection="true"
ValuePresenter="ValuePresenter.Chip"
AnchorOrigin="Origin.BottomCenter"
SelectedValues="Categories"
SelectedValuesChanged="SelectedCategoriesChanged">
</MudSelectExtended>
@code
Expand All @@ -33,9 +34,9 @@
}
}

private async Task SelectedCategoriesChanged(IEnumerable<string> categories)
private async Task SelectedCategoriesChanged(IEnumerable<string?>? categories)
{
Categories = categories.ToArray();
Categories = categories?.ToArray()!;
await CategoriesChanged.InvokeAsync(Categories);
}
}

0 comments on commit 510eb70

Please sign in to comment.