fix eslint warnings

This commit is contained in:
Jacob Overgaard
2024-01-09 14:53:58 +01:00
parent 1e86dde7ac
commit ef08344a55
2 changed files with 2 additions and 2 deletions

View File

@@ -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';

View File

@@ -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) {