@page "/gallery" @layout Shared.MainLayout @using Wabbajack.Networking.WabbajackClientApi; @using System.Linq; @using Wabbajack.DTOs @inject Client _client
@if (_listItems.Count > 0) { foreach (ModlistMetadata item in _listItems) { } }
@code { List _listItems = new(); protected override async Task OnInitializedAsync() { try { ModlistMetadata[] modLists = await _client.LoadLists(); _listItems = modLists.ToList(); StateHasChanged(); } catch (Exception ex) { Console.WriteLine(ex); } } }