Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Oct 4, 2024
1 parent fa119fa commit 3291920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Templates/Pages/.razor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@
await _table.ReloadServerData();
Snackbar.Add($"{ConstantString.ImportSuccess}", MudBlazor.Severity.Info);
return data;
},
errors =>
}, errors =>
{
Snackbar.Add($"{errors}", MudBlazor.Severity.Error);
return Task.FromResult(0);
Expand Down
2 changes: 1 addition & 1 deletion src/Templates/Pages/Components/.formdialog.razor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
if (!_form!.IsValid)
return;
var result = await Mediator.Send(model);
result.MatchAsync(data =>
await result.MatchAsync(async data =>
{
Snackbar.Add(ConstantString.SaveSuccess, MudBlazor.Severity.Info);
await Task.Delay(300);
Expand Down

0 comments on commit 3291920

Please sign in to comment.