From b8fb2357499124260aa61f27b4ee3eea463e8ae9 Mon Sep 17 00:00:00 2001 From: Anukriti Singh Date: Mon, 16 Oct 2023 15:09:47 +0530 Subject: [PATCH] [ACS-5645] code updated as per comments --- .../content-metadata/content-metadata.component.html | 4 ++-- .../components/content-metadata/content-metadata.component.ts | 2 +- .../src/lib/tag/tags-creator/tags-creator.component.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.html b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.html index d65418f920f..7ab82b948b8 100644 --- a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.html +++ b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.html @@ -121,8 +121,8 @@ diff --git a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts index 281ab53118a..a9d400bcc52 100644 --- a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts +++ b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts @@ -476,7 +476,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy { this.cdr.detectChanges(); } - handleCategoriesPanelState(isCategoriesPanelVisible: boolean) { + toggleCategoriesPanel(isCategoriesPanelVisible: boolean) { this.isCategoriesPanelVisible = isCategoriesPanelVisible; this.cdr.detectChanges(); } diff --git a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.ts b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.ts index db83d893da8..ce9705b26a4 100644 --- a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.ts +++ b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.ts @@ -230,7 +230,7 @@ export class TagsCreatorComponent implements OnInit, OnDestroy { * Returns `true` if tags empty, otherwise `false` */ get isTagsEmpty(): boolean { - return this.tags.length === 0 && !this.tagNameControlVisible; + return this.tags?.length === 0 && !this.tagNameControlVisible; } get existingTags(): TagEntry[] {