mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
94390: Add comment to array flattening
This commit is contained in:
@@ -45,6 +45,7 @@ export class DSOEditMenuResolver implements Resolve<{ [key: string]: MenuSection
|
|||||||
if (dsoRD.hasSucceeded) {
|
if (dsoRD.hasSucceeded) {
|
||||||
const dso = dsoRD.payload;
|
const dso = dsoRD.payload;
|
||||||
return combineLatest(this.getDsoMenus(dso, route, state)).pipe(
|
return combineLatest(this.getDsoMenus(dso, route, state)).pipe(
|
||||||
|
// Menu sections are retrieved as an array of arrays and flattened into a single array
|
||||||
map((combinedMenus) => [].concat.apply([], combinedMenus)),
|
map((combinedMenus) => [].concat.apply([], combinedMenus)),
|
||||||
map((menus) => this.addDsoUuidToMenuIDs(menus, dso)),
|
map((menus) => this.addDsoUuidToMenuIDs(menus, dso)),
|
||||||
map((menus) => {
|
map((menus) => {
|
||||||
|
Reference in New Issue
Block a user