mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
[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:
committed by
Eugenio Romano
parent
7ddd3f1a8f
commit
3478b06716
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user