Skip to content

Commit 4b3d903

Browse files
committed
fix: Store infinite subscription so we can later unsubscribe
Signed-off-by: Akshat Patel <[email protected]>
1 parent 61aed39 commit 4b3d903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grid/column.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class ColumnDirective implements OnInit, OnChanges, OnDestroy {
6565

6666
ngOnInit() {
6767
if (this.gridService) {
68-
this.gridService.gridObservable.subscribe((isCssGrid: boolean) => {
68+
this.subscription = this.gridService.gridObservable.subscribe((isCssGrid: boolean) => {
6969
this.isCssGrid = isCssGrid;
7070
this.updateColumnClasses();
7171
});

0 commit comments

Comments
 (0)