[ACS-5645] Implemented the changes as per the review comments

This commit is contained in:
Yasa-Nataliya
2023-10-09 20:22:06 +05:30
parent 300211eb98
commit e0f781420e
2 changed files with 2 additions and 2 deletions
@@ -178,7 +178,7 @@ export class CategoriesManagementComponent implements OnInit, OnDestroy {
}
get isNameCategoryVisible(): boolean {
return (!this.categoryNameControlVisible && this.categories.length > 0) || this.categoryNameControlVisible;
return (!this.categoryNameControlVisible && this.categories?.length > 0) || this.categoryNameControlVisible;
}
get categoryNameControl(): FormControl<string> {
@@ -220,7 +220,7 @@ export class TagsCreatorComponent implements OnInit, OnDestroy {
}
get isNameTagsVisible(): boolean {
return (!this.tagNameControlVisible && this.tags.length > 0) || this.tagNameControlVisible;
return (!this.tagNameControlVisible && this.tags?.length > 0) || this.tagNameControlVisible;
}
get isEmpty(): boolean {