fix eslint warnings
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { UmbBackofficeContext, UMB_BACKOFFICE_CONTEXT_TOKEN } from './backoffice.context.js';
|
||||
import { UmbBackofficeContext } from './backoffice.context.js';
|
||||
import { UmbServerExtensionRegistrator } from './server-extension-registrator.controller.js';
|
||||
import { css, html, customElement } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
@@ -76,7 +76,7 @@ export class UmbBackofficeMainElement extends UmbLitElement {
|
||||
|
||||
private _onRouteChange = async (event: UmbRouterSlotChangeEvent) => {
|
||||
const currentPath = event.target.localActiveViewPath || '';
|
||||
const section = this._sections.find((s) => this._routePrefix + (s.manifest as any).meta.pathname === currentPath);
|
||||
const section = this._sections.find((s) => this._routePrefix + s.manifest?.meta.pathname === currentPath);
|
||||
if (!section) return;
|
||||
await section.asPromise();
|
||||
if (section.manifest) {
|
||||
|
||||
Reference in New Issue
Block a user