|
|
@@ -15,12 +15,15 @@ export default class WebsiteListMenuBuilder extends AbstractMenuBuilder {
|
|
|
build(): MenuGroup | null {
|
|
|
const children: MenuItems = []
|
|
|
|
|
|
+ // Add organization website
|
|
|
if (this.organizationProfile.website) {
|
|
|
const url = this.organizationProfile.website + '/typo3'
|
|
|
children.push(this.createItem(this.organizationProfile.name as string, undefined, url, MENU_LINK_TYPE.EXTERNAL))
|
|
|
}
|
|
|
+
|
|
|
+ // Add parents websites
|
|
|
_.each(this.organizationProfile.parents, (parent:any) => {
|
|
|
- if(parent.id != this.runtimeConfig.OPENTALENT_MANAGER_ID){
|
|
|
+ if (parent.id && parent.name && parent.website && parent.id != this.runtimeConfig.OPENTALENT_MANAGER_ID) {
|
|
|
children.push(this.createItem(parent.name, undefined, parent.website, MENU_LINK_TYPE.EXTERNAL))
|
|
|
}
|
|
|
})
|