Skip to content

Commit

Permalink
fix: update init
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunlalb committed Dec 21, 2023
1 parent 79e58e1 commit be95e28
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class StringArrayTableCellRendererComponent
extends TableCellRendererBase<string[], string[], StringArrayTableCellConfigOptions>
implements OnInit {
public maxItemsInTooltip: number = 50;
protected readonly viewMode: StringArrayTableCellDisplayMode = StringArrayTableCellDisplayMode.List;
protected readonly viewMode: StringArrayTableCellDisplayMode;
public constructor(
@Inject(TABLE_COLUMN_CONFIG) columnConfig: TableColumnConfig<StringArrayTableCellConfigOptions>,
@Inject(TABLE_COLUMN_INDEX) index: number,
Expand All @@ -61,10 +61,7 @@ export class StringArrayTableCellRendererComponent
@Inject(TABLE_ROW_DATA) rowData: TableRow,
) {
super(columnConfig, index, parser, cellData, rowData);

if (this.columnConfigOptions?.viewMode) {
this.viewMode = this.columnConfigOptions.viewMode;
}
this.viewMode = this.columnConfigOptions?.viewMode ?? StringArrayTableCellDisplayMode.List;
}

public getOffsetLabel(count: number): string {
Expand Down

0 comments on commit be95e28

Please sign in to comment.