Browse Source
Wrap mud OnDeletedEntityAsync with InvokeAsync and null-check _dataGrid
pull/25393/head
maliming
5 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
4 additions and
1 deletions
-
framework/src/Volo.Abp.MudBlazorUI/AbpMudCrudPageBase.cs
|
|
@ -598,7 +598,10 @@ public abstract class AbpMudCrudPageBase< |
|
|
|
|
|
|
|
|
protected virtual async Task OnDeletedEntityAsync() |
|
|
protected virtual async Task OnDeletedEntityAsync() |
|
|
{ |
|
|
{ |
|
|
await _dataGrid.ReloadServerDataAsync(); |
|
|
if (_dataGrid != null) |
|
|
|
|
|
{ |
|
|
|
|
|
await InvokeAsync(() => _dataGrid.ReloadServerDataAsync()); |
|
|
|
|
|
} |
|
|
Snackbar.Add(GetDeleteMessage(), Severity.Success); |
|
|
Snackbar.Add(GetDeleteMessage(), Severity.Success); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|