Skip to content

Commit

Permalink
Fix spinner not hidden on error (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavnavar committed Feb 15, 2021
1 parent a16c864 commit 66e67bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GridBlazor/Pages/GridComponent.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,7 @@ public async Task CreateItem(GridCreateComponent<T> component)
}
catch (Exception e)
{
await HideSpinner();
Console.WriteLine(e.Message);
throw;
}
Expand Down Expand Up @@ -1318,6 +1319,7 @@ public async Task UpdateItem(GridUpdateComponent<T> component)
}
catch (Exception e)
{
await HideSpinner();
Console.WriteLine(e.Message);
throw;
}
Expand Down Expand Up @@ -1362,6 +1364,7 @@ public async Task DeleteItem(GridDeleteComponent<T> component)
}
catch (Exception e)
{
await HideSpinner();
Console.WriteLine(e.Message);
throw;
}
Expand Down

0 comments on commit 66e67bc

Please sign in to comment.