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

This commit is contained in:
Yasa-Nataliya
2023-10-13 16:21:45 +05:30
committed by Anukriti Singh
parent aa6b527a5d
commit 9723f9f480
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 {