[ADF-5363] - when aspects has no name we will show the id instead (#6906)

* [ADF-5363] - when aspects has no name we will show the id instead

* added PR review fix
This commit is contained in:
Vito
2021-04-09 16:00:55 +01:00
committed by GitHub
parent a1ae3ae8c8
commit 4b13ab7ec4
3 changed files with 36 additions and 6 deletions

View File

@@ -101,4 +101,12 @@ export class AspectListComponent implements OnInit, OnDestroy {
this.nodeAspects = [];
this.valueChanged.emit(this.nodeAspects);
}
getId(aspect: any): string {
return aspect?.entry?.title ? aspect?.entry?.title : aspect?.entry?.id.replace(':', '-');
}
getTitle(aspect: any): string {
return aspect?.entry?.title ? aspect?.entry?.title : aspect?.entry?.id;
}
}