Skip to content

Commit a9229b8

Browse files
committed
chore(*): fix noop sample
1 parent 912de83 commit a9229b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
8989
* Emitted when the dimension collection is changed via the grid chip area.
9090
*
9191
* @remarks
92-
* Returns the new dimension collection and its type:
92+
* Returns the new dimension collection and its type:
9393
* @example
9494
* ```html
9595
* <igx-pivot-grid #grid [data]="localData" [height]="'305px'" [autoGenerate]="true"
@@ -316,7 +316,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
316316
public get defaultExpandState() {
317317
return this._defaultExpandState;
318318
}
319-
319+
320320
public set defaultExpandState(val: boolean) {
321321
this._defaultExpandState = val;
322322
}
@@ -1121,7 +1121,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
11211121
ref.instance.header = parent != null ? key.split(parent.header + '-')[1] : key;
11221122
ref.instance.field = key;
11231123
ref.instance.parent = parent;
1124-
ref.instance.width = value.dimension.width || MINIMUM_COLUMN_WIDTH + 'px';
1124+
ref.instance.width = value.dimension?.width || MINIMUM_COLUMN_WIDTH + 'px';
11251125
ref.instance.dataType = this.pivotConfiguration.values[0]?.dataType || this.resolveDataTypes(data[0][key]);
11261126
ref.instance.formatter = this.pivotConfiguration.values[0]?.formatter;
11271127
ref.instance.sortable = true;
@@ -1157,13 +1157,13 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
11571157
refSibling.instance.header = parent != null ? key.split(parent.header + '-')[1] : key;
11581158
refSibling.instance.field = key;
11591159
refSibling.instance.parent = parent;
1160-
ref.instance.width = value.dimension.width || MINIMUM_COLUMN_WIDTH + 'px';
1160+
ref.instance.width = value.dimension?.width || MINIMUM_COLUMN_WIDTH + 'px';
11611161
ref.instance.sortable = true;
11621162
refSibling.instance.dataType = this.pivotConfiguration.values[0]?.dataType || this.resolveDataTypes(data[0][key]);
11631163
refSibling.instance.formatter = this.pivotConfiguration.values[0]?.formatter;
11641164
columns.push(refSibling.instance);
11651165

1166-
measureChildren = this.getMeasureChildren(factoryColumn, data, refSibling.instance, false, value.dimension.width);
1166+
measureChildren = this.getMeasureChildren(factoryColumn, data, refSibling.instance, false, value.dimension?.width);
11671167
refSibling.instance.children.reset(measureChildren);
11681168
columns = columns.concat(measureChildren);
11691169
}
@@ -1176,7 +1176,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
11761176
refSibling.instance.header = parent != null ? key.split(parent.header + '-')[1] : key;
11771177
refSibling.instance.field = key;
11781178
refSibling.instance.parent = parent;
1179-
ref.instance.width = value.dimension.width || MINIMUM_COLUMN_WIDTH + 'px';
1179+
ref.instance.width = value.dimension?.width || MINIMUM_COLUMN_WIDTH + 'px';
11801180
ref.instance.sortable = true;
11811181
refSibling.instance.dataType = this.pivotConfiguration.values[0]?.dataType || this.resolveDataTypes(data[0][key]);
11821182
refSibling.instance.formatter = this.pivotConfiguration.values[0]?.formatter;

0 commit comments

Comments
 (0)