From c6ae064c9005be9923ff67d40fd15afb741fc7cc Mon Sep 17 00:00:00 2001 From: KoloMl Date: Tue, 9 Apr 2024 01:26:15 +0400 Subject: [PATCH] Fixed check for active profile on the tools container --- src/lib/components/MediaBoxTools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/MediaBoxTools.js b/src/lib/components/MediaBoxTools.js index 5b931ec..53430b0 100644 --- a/src/lib/components/MediaBoxTools.js +++ b/src/lib/components/MediaBoxTools.js @@ -38,10 +38,10 @@ export class MediaBoxTools extends BaseComponent { } /** - * @param {MaintenanceProfile|null} activeProfile + * @param {CustomEvent} profileChangedEvent */ - #onActiveProfileChanged(activeProfile) { - this.container.classList.toggle('has-active-profile', activeProfile !== null); + #onActiveProfileChanged(profileChangedEvent) { + this.container.classList.toggle('has-active-profile', profileChangedEvent.detail !== null); } /**