Revert "TESTING: sectionID argument to debug getComponentForMenu"

This reverts commit bfbe598bdd.
This commit is contained in:
Yura Bondarenko
2021-02-26 16:12:54 +01:00
parent bfbe598bdd
commit e23e46b212
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, sectionID: string) {
export function getComponentForMenu(menuID: MenuID, expandable: boolean) {
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, section.id);
return getComponentForMenu(this.menuID, expandable);
}
),
);