From d48b0f9bd0544b4b05afa0dd23c61b0bee7bc788 Mon Sep 17 00:00:00 2001 From: Daniel Battaglia Date: Thu, 21 Dec 2023 13:41:28 +0100 Subject: [PATCH] fix(): workaround for steps in wizard overview not hidden due to ds bug also see https://github.com/baloise/design-system/issues/1246 --- .../form-wizard/wizard-overview/wizard-overview.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/lib/src/form/form-wizard/wizard-overview/wizard-overview.component.ts b/projects/lib/src/form/form-wizard/wizard-overview/wizard-overview.component.ts index 21085d9..5e54dee 100644 --- a/projects/lib/src/form/form-wizard/wizard-overview/wizard-overview.component.ts +++ b/projects/lib/src/form/form-wizard/wizard-overview/wizard-overview.component.ts @@ -16,7 +16,9 @@ export class WizardOverviewComponent implements OnInit { @Input() set steps(steps: WizardStep[]) { - this._steps = steps + // TODO: remove when https://github.com/baloise/design-system/issues/1246 is resolved + // step.filter() was added as a workaround to fix an issue introduced with Design System 15.0.2 + this._steps = steps.filter(s => s.visible && s.enabled) } ngOnInit(): void {