Merge branch 'DEVELOP' of ssh://git.eclipse.org:29418/openk-usermodules/org.eclipse.openk-usermodules.gridFailureInformation.frontend into SI-1196-distribution-groups
diff --git a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.ts b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.ts
index 5360890..feb87dd 100644
--- a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.ts
+++ b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.ts
@@ -268,8 +268,8 @@
     modalRef.componentInstance.body = 'ConfirmDialog.Deletion';
     modalRef.result.then(
       () => {
+        this.actionsSubject.pipe(ofType(gridFailureActions.deleteGridFailureSuccess), take(1)).subscribe(()=>this._clear());
         this.appState$.dispatch(gridFailureActions.deleteGridFailure({ gridFailureId: this._gridFailureId }));
-        this._clear();
       },
       () => {
         modalRef.close();