Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Nov 16, 2023
1 parent 049593f commit df57e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/srm/src/app/card/card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class CardComponent implements OnInit, OnChanges, AfterViewInit {

ngAfterViewInit(): void {
const first = this.el.nativeElement.querySelector('.visible app-card-action a') as HTMLElement;
first.classList.add('primary');
first?.classList.add('primary');
this.obs.observe(first);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class QuickActionsComponent implements AfterViewInit {

ngAfterViewInit(): void {
const first = this.el.nativeElement.querySelector('.visible app-card-action a') as HTMLElement;
first.classList.add('primary');
first?.classList.add('primary');
}

}

0 comments on commit df57e81

Please sign in to comment.