Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KingSora committed Aug 27, 2024
2 parents 5c3242c + a2e1266 commit 1005cf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class OverlayScrollbarsComponent implements OnDestroy, AfterViewInit {
}

ngOnDestroy() {
this.osDirective?.osInstance()!.destroy();
this.osDirective?.osInstance()?.destroy();
}

mergeEvents(originalEvents: OverlayScrollbarsComponent['events']) {
Expand Down

0 comments on commit 1005cf8

Please sign in to comment.