Skip to content

Commit 9832bcf

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Adding missed check.
1 parent ca1fc45 commit 9832bcf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

projects/igniteui-angular/src/lib/tabs/tabs.component.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,11 @@ export class IgxTabsComponent implements IgxTabsBase, AfterViewInit, OnDestroy {
353353
if (this._groupChanges$) {
354354
this._groupChanges$.unsubscribe();
355355
}
356-
357-
this._ngZone.runOutsideAngular(() => {
358-
this._resizeObserver.disconnect();
359-
});
356+
if (this.platformUtil.isBrowser) {
357+
this._ngZone.runOutsideAngular(() => {
358+
this._resizeObserver.disconnect();
359+
});
360+
}
360361
}
361362

362363
private resetSelectionOnCollectionChanged(): void {

0 commit comments

Comments
 (0)