mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5645]Added null checks
This commit is contained in:
+2
-2
@@ -442,11 +442,11 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hasTags(): boolean {
|
hasTags(): boolean {
|
||||||
return !(this.tags.length > 0) && !this.editableTags;
|
return !(this.tags?.length > 0) && !this.editableTags;
|
||||||
}
|
}
|
||||||
|
|
||||||
hasCategories(): boolean {
|
hasCategories(): boolean {
|
||||||
return !(this.categories.length > 0) && !this.editableCategories;
|
return !(this.categories?.length > 0) && !this.editableCategories;
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasToggleEdit(): boolean {
|
get hasToggleEdit(): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user