Skip to content

Commit

Permalink
fix(table): Fixes an issue with the simple-column dependency injectio…
Browse files Browse the repository at this point in the history
…n for tests.
  • Loading branch information
tomheller committed Jul 25, 2023
1 parent 3ea3a1b commit c0c65e3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ import {
} from '@angular/cdk/coercion';
import {
Directive,
Inject,
Input,
OnChanges,
OnDestroy,
OnInit,
Optional,
SimpleChanges,
ViewChild,
forwardRef,
} from '@angular/core';
import { DtIndicatorThemePalette } from '@dynatrace/barista-components/indicator';
import { DtFormattedValue } from '@dynatrace/barista-components/formatters';
Expand Down Expand Up @@ -173,7 +175,9 @@ export abstract class DtSimpleColumnBase<T>
*/
@ViewChild(DtCellDef, { static: true }) _cellDef: DtCellDef;

constructor(@Optional() public table: DtTable<T>) {}
constructor(
@Optional() @Inject(forwardRef(() => DtTable)) public table: DtTable<T>,
) {}

ngOnInit(): void {
this._syncColumnDefName();
Expand Down

0 comments on commit c0c65e3

Please sign in to comment.