Merge branch 'DEVELOP' of ssh://git.eclipse.org:29418/openk-usermodules/org.eclipse.openk-usermodules.gridFailureInformation.frontend into SI-2948-BUG-abgeschlossene-Verdichtung-laesst-sich-weiter-verdichten
diff --git a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-list/grid-failure-list.component.ts b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-list/grid-failure-list.component.ts
index 693e4d2..58aa675 100644
--- a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-list/grid-failure-list.component.ts
+++ b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-list/grid-failure-list.component.ts
@@ -276,10 +276,10 @@
this._router.navigate(['/grid-failures', event.data.id]);
break;
case this._eventTypeEnum.InitialLoad:
+ const condensedGridFailure = this.sandbox.overviewGridFailureList.find(gridFailure => gridFailure.id === this.sandbox.condenseId);
this.showEditCondensationBtn = !(
- this.sandbox.condensationList.length &&
- this.sandbox.condensationList.length > 0 &&
- this.sandbox.condensationList[0].statusIntern === StateEnum.COMPLETED
+ !!condensedGridFailure &&
+ (condensedGridFailure.statusIntern === StateEnum.COMPLETED || condensedGridFailure.statusIntern === StateEnum.CANCELED)
);
this._changeMode();
break;