We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5be973 + 686aead commit 1759bd5Copy full SHA for 1759bd5
projects/igniteui-angular/src/lib/grids/columns/column.component.ts
@@ -584,7 +584,7 @@ export class IgxColumnComponent implements AfterContentInit {
584
/* No grid/width available at initialization. `initPinning` in the grid
585
will re-init the group (if present)
586
*/
587
- this._unpinnedIndex = this.grid.columns.filter(x => !x.pinned).indexOf(this);
+ this._unpinnedIndex = this.grid ? this.grid.columns.filter(x => !x.pinned).indexOf(this) : 0;
588
this._pinned = value;
589
this.pinnedChange.emit(this._pinned);
590
}
0 commit comments