From 66e67bc78e6d3e782b794d5be8bdf1fbda39836d Mon Sep 17 00:00:00 2001 From: Gustau Navarro Date: Mon, 15 Feb 2021 14:02:02 +0100 Subject: [PATCH] Fix spinner not hidden on error (https://github.com/gustavnavar/Grid.Blazor/issues/259) --- GridBlazor/Pages/GridComponent.razor.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GridBlazor/Pages/GridComponent.razor.cs b/GridBlazor/Pages/GridComponent.razor.cs index ac098004..ce760c3e 100644 --- a/GridBlazor/Pages/GridComponent.razor.cs +++ b/GridBlazor/Pages/GridComponent.razor.cs @@ -1275,6 +1275,7 @@ public async Task CreateItem(GridCreateComponent component) } catch (Exception e) { + await HideSpinner(); Console.WriteLine(e.Message); throw; } @@ -1318,6 +1319,7 @@ public async Task UpdateItem(GridUpdateComponent component) } catch (Exception e) { + await HideSpinner(); Console.WriteLine(e.Message); throw; } @@ -1362,6 +1364,7 @@ public async Task DeleteItem(GridDeleteComponent component) } catch (Exception e) { + await HideSpinner(); Console.WriteLine(e.Message); throw; }