diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/dashboards/performance-profiling/dashboard-performance-profiling.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/core/dashboards/performance-profiling/dashboard-performance-profiling.element.ts index cb7dcbd02b..b761619add 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/core/dashboards/performance-profiling/dashboard-performance-profiling.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/core/dashboards/performance-profiling/dashboard-performance-profiling.element.ts @@ -27,16 +27,16 @@ export class UmbDashboardPerformanceProfilingElement extends LitElement { private _profilingStatus?: boolean; @state() - private _profilingPerfomance = false; + private _profilingPerformance = false; connectedCallback(): void { super.connectedCallback(); this._getProfilingStatus(); - this._profilingPerfomance = localStorage.getItem('profilingPerformance') === 'true'; + this._profilingPerformance = localStorage.getItem('profilingPerformance') === 'true'; } private async _getProfilingStatus() { - + const {data} = await new UmbResourceController(this, ProfilingResource.getProfilingStatus()).tryExecuteAndNotify(); // TODO: consider wrapping above into a method, like this: @@ -48,8 +48,8 @@ export class UmbDashboardPerformanceProfilingElement extends LitElement { } private _changeProfilingPerformance() { - this._profilingPerfomance = !this._profilingPerfomance; - localStorage.setItem('profilingPerformance', this._profilingPerfomance.toString()); + this._profilingPerformance = !this._profilingPerformance; + localStorage.setItem('profilingPerformance', this._profilingPerformance.toString()); } private renderProfilingStatus() { @@ -73,7 +73,7 @@ export class UmbDashboardPerformanceProfilingElement extends LitElement {

Friendly reminder