diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/settings/dashboards/performance-profiling/dashboard-performance-profiling.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/settings/dashboards/performance-profiling/dashboard-performance-profiling.element.ts index 00ca529b57..6ac5a4205c 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/settings/dashboards/performance-profiling/dashboard-performance-profiling.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/settings/dashboards/performance-profiling/dashboard-performance-profiling.element.ts @@ -30,8 +30,8 @@ export class UmbDashboardPerformanceProfilingElement extends UmbLitElement { @state() private _profilingPerformance = false; - connectedCallback(): void { - super.connectedCallback(); + constructor() { + super(); this._getProfilingStatus(); this._profilingPerformance = localStorage.getItem('profilingPerformance') === 'true'; }