Skip to content

Commit

Permalink
spread in form children
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Nov 4, 2024
1 parent 4bd9356 commit 18fc2f8
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ export class DaffioDocsDesignComponentOverviewPageComponent implements OnInit {
this.components$ = this.route.route$.pipe(
switchMap((route) => route.data),
map((data) => data.index),
map((docsList: DaffDocsDesignGuideNavList) => docsList.children.find(({ id }) => id === 'components').children.filter(({ id }) => !!id)),
map((docsList: DaffDocsDesignGuideNavList) =>
docsList
.children
.find(({ id }) => id === 'components')
.children
.filter(({ id }) => !!id)
.flatMap((d) => d.children.length ? d.children : d),
),
);
}
}

0 comments on commit 18fc2f8

Please sign in to comment.