diff --git a/Nekos/Pages/Index.razor b/Nekos/Pages/Index.razor index 6b5912b..3189e2c 100644 --- a/Nekos/Pages/Index.razor +++ b/Nekos/Pages/Index.razor @@ -6,7 +6,6 @@ @inject Blazored.LocalStorage.ILocalStorageService LocalStorage @inject ClipboardService Clipboard @inject MessageService Message -@inject NekosAPI.NET.V3.NekosClient NekosClient
@if (!_showFavorites) @@ -106,6 +105,7 @@ public LinkedListNode? PreloadImageUrl2; private readonly RandomNekoClient _nekoClient = new(new HttpClient()); + private readonly ApiNekoClient _apiClient = new(new HttpClient()); private readonly LinkedList _images = []; @@ -141,11 +141,11 @@ private List _selectedTags = new(); - private List _availableTags = new(); + private PagedTagSchema _availableTags = new(); protected override async Task OnInitializedAsync() { - _availableTags = await NekosClient.TagsAsync(); + _availableTags = await _apiClient.TagsAsync(); } protected override async Task OnAfterRenderAsync(bool firstRender)