[ADF-1856] Document List - location fails for granular permissions (#2583)

* check if path has data

* updated docs

* check for required properties

* simplied condition
This commit is contained in:
Cilibiu Bogdan
2017-11-02 16:25:39 +02:00
committed by Eugenio Romano
parent 7ddd3f1a8f
commit 3478b06716
3 changed files with 140 additions and 1 deletions

View File

@@ -44,7 +44,8 @@ export class LocationCellComponent extends DataTableCellComponent implements OnI
ngOnInit() {
if (!this.value && this.column && this.column.key && this.row && this.data) {
const path: PathInfoEntity = this.data.getValue(this.row, this.column);
if (path) {
if (path && path.name && path.elements) {
this.value = path;
this.displayText = path.name.split('/').pop();