Skip to content

Commit f74447b

Browse files
jcorrea97anderson-gregorio-totvs
authored andcommitted
fix(table): corrige erro no console
Corrige erro no console ao usar template na tabela fixes DTHFUI-9354
1 parent 99b69c2 commit f74447b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/ui/src/lib/components/po-table/po-table.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ export class PoTableComponent extends PoTableBaseComponent implements AfterViewI
693693
}
694694

695695
public getTemplate(column: PoTableColumn): TemplateRef<any> {
696-
const template: PoTableColumnTemplateDirective = this.tableColumnTemplates.find(
696+
const template: PoTableColumnTemplateDirective = this.tableColumnTemplates?.find(
697697
tableColumnTemplate => tableColumnTemplate.targetProperty === column.property
698698
);
699699
if (!template) {

0 commit comments

Comments
 (0)