Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed May 27, 2024
1 parent aec912f commit a6c6a19
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
<Field>
<FieldLabel>Module Id to Remove</FieldLabel>
<FieldBody>
<Select TValue="int?" @bind-SelectedValue="@_modIdToDelete">
<Select @bind-SelectedValue="@_modIdToDelete">
@{
_modIdToDelete = _dataGridRef.Value.NexusModsMods.Select(x => x.NexusModsModId).First();
foreach (var allowedModId in _dataGridRef.Value.NexusModsMods.Select(x => x.NexusModsModId))
{
<SelectItem Value="@allowedModId">@allowedModId</SelectItem>
Expand Down Expand Up @@ -106,7 +105,11 @@
private Modal _modalRef = default!;
private DataGridPaging<LinkedByStaffModuleNexusModsModsModel>? _dataGridRef;

private async Task ShowModal() => await _modalRef.Show();
private async Task ShowModal()
{
_modIdToDelete = _dataGridRef?.Value?.NexusModsMods.Select(x => x.NexusModsModId).First();
await _modalRef.Show();
}

private async Task HideModal(bool save)
{
Expand Down

0 comments on commit a6c6a19

Please sign in to comment.