From 12cac2a2e8136bbb96d3ca03fcfc2b574643ee88 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 13 Nov 2023 17:31:21 +0100 Subject: [PATCH] fix: panels are only initialized once (#2071) --- .../entity-details/entity-details/entity-details.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/core/entity-details/entity-details/entity-details.component.ts b/src/app/core/entity-details/entity-details/entity-details.component.ts index 6b5c413fe9..ff3dbb492b 100644 --- a/src/app/core/entity-details/entity-details/entity-details.component.ts +++ b/src/app/core/entity-details/entity-details/entity-details.component.ts @@ -91,8 +91,8 @@ export class EntityDetailsComponent implements EntityDetailsConfig, OnChanges { } if (changes.id) { this.loadEntity(this.id); - } - if (changes.panels) { + // `initPanels()` is already called inside `loadEntity()` + } else if (changes.panels) { this.initPanels(); } }