public async Task LoadTabletop() { if (InputImageURL.Length != 0) { if (InputImageURL == Tabletop.Image) { Hub.ClearTabletop(); } Tabletop.Image = InputImageURL; TabletopImageLoaded = false; Tabletop.GridType = null; int[] GridData = await JSRuntime.InvokeAsync <int[]>("GetGridSize", InputImageURL, GridCellSize); Hub.LoadTabletop(InputImageURL, SelectedGridType, GridData, GridCellSize, FogOfWar, FOVFOW, PvP); CloseAllModals(); StateHasChanged(); } }