TESTING: sectionID argument to debug getComponentForMenu

This commit is contained in:
Yura Bondarenko
2021-02-26 15:25:00 +01:00
parent 7e0866afe7
commit bfbe598bdd
2 changed files with 2 additions and 2 deletions

View File

@@ -26,6 +26,6 @@ export function rendersSectionForMenu(menuID: MenuID, expandable: boolean) {
* @param {boolean} expandable True when the section should be expandable, false when if should not
* @returns {GenericConstructor} The constructor of the matching Component
*/
export function getComponentForMenu(menuID: MenuID, expandable: boolean) {
export function getComponentForMenu(menuID: MenuID, expandable: boolean, sectionID: string) {
return menuComponentMap.get(menuID).get(expandable);
}

View File

@@ -164,7 +164,7 @@ export class MenuComponent implements OnInit, OnDestroy {
private getSectionComponent(section: MenuSection): Observable<GenericConstructor<MenuSectionComponent>> {
return this.menuService.hasSubSections(this.menuID, section.id).pipe(
map((expandable: boolean) => {
return getComponentForMenu(this.menuID, expandable);
return getComponentForMenu(this.menuID, expandable, section.id);
}
),
);