Skip to content

Commit

Permalink
[ACS-5645] code updated as per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AnukritiGL committed Oct 17, 2023
1 parent 69a3ead commit 52ad6e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
</ng-container>
<ng-container *ngIf="displayCategories">
<mat-expansion-panel
(opened)="handleCategoriesPanelState(true)"
(closed)="handleCategoriesPanelState(false)"
(opened)="toggleCategoriesPanel(true)"
(closed)="toggleCategoriesPanel(false)"
hideToggle
[expanded]="isCategoriesPanelVisible">
<mat-expansion-panel-header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[] {
Expand Down

0 comments on commit 52ad6e8

Please sign in to comment.