fixed subscribers page sometimes missing pages

This commit is contained in:
Mia Rose Winter 2024-04-30 13:42:13 +02:00
parent 2eb1305ea5
commit e816b9fb43
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -152,7 +152,7 @@
protected override async Task OnInitializedAsync() {
if (Items < 1) Items = 10;
await using var context = await ContextFactory.CreateDbContextAsync();
var query = context.Set<EmailSubscriber>();
var query = context.Set<EmailSubscriber>().IgnoreQueryFilters();
TotalPages = (int)Math.Max(Math.Ceiling(await query.CountAsync() / (double)Items), 1);
}