Fixed check for active profile on the tools container

This commit is contained in:
koloml committed 2024-04-09 01:26:15 +04:00
1 parent 0d2d175cf9
commit c6ae064c90
1 file changed
+3 -3
+3 -3
View File
@@ -38,10 +38,10 @@ export class MediaBoxTools extends BaseComponent {
}
/**
* @param {MaintenanceProfile|null} activeProfile
* @param {CustomEvent<MaintenanceProfile|null>} profileChangedEvent
*/
#onActiveProfileChanged(activeProfile) {
this.container.classList.toggle('has-active-profile', activeProfile !== null);
#onActiveProfileChanged(profileChangedEvent) {
this.container.classList.toggle('has-active-profile', profileChangedEvent.detail !== null);
}
/**