Skip to content

Commit

Permalink
Merge pull request #3939 from oqtane/revert-3938-task/fix-pr-3927
Browse files Browse the repository at this point in the history
Revert "Fix #3927: change to async method to avoid the exception."
  • Loading branch information
sbwalker authored Mar 4, 2024
2 parents 99d4d5e + 63a0c7c commit ad12d42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Oqtane.Client/Themes/AdminContainer.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><ModuleTitle /></h5>
<form method="post" class="app-form-inline" @formname="AdminContainerForm" @onsubmit="@(async () => await CloseModal())" data-enhance>
<form method="post" class="app-form-inline" @formname="AdminContainerForm" @onsubmit="@CloseModal" data-enhance>
<input type="hidden" name="__RequestVerificationToken" value="@SiteState.AntiForgeryToken" />
<button type="submit" class="btn-close" aria-label="Close"></button>
</form>
Expand All @@ -22,9 +22,9 @@
</div>

@code {
private async Task CloseModal()
{
NavigationManager.NavigateTo((!string.IsNullOrEmpty(PageState.ReturnUrl)) ? PageState.ReturnUrl : NavigateUrl());
private void CloseModal()
{
NavigationManager.NavigateTo((!string.IsNullOrEmpty(PageState.ReturnUrl)) ? PageState.ReturnUrl : NavigateUrl());
}
}

0 comments on commit ad12d42

Please sign in to comment.