temp ignore ts error to fix build

This commit is contained in:
Mads Rasmussen
2022-05-25 15:07:35 +02:00
parent f13fe01716
commit ce8628f338

View File

@@ -177,7 +177,8 @@ export class UmbBackofficeHeader extends UmbContextConsumerMixin(LitElement) {
.subscribe((sectionExtensions: any) => {
this._sections = sectionExtensions.filter((section: any) => this._allowedSection.includes(section.alias));
this._visibleSections = this._sections;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const currentSectionAlias = this._sections.find(section => section.name === this._location?.params?.section)?.alias;
if (!currentSectionAlias) return;
this._sectionContext?.setCurrent(currentSectionAlias);