Skip to content

Commit

Permalink
fix(entity-table): fix formControl with no properties entity (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeLafreniere18 authored Apr 5, 2022
1 parent 6b48062 commit b52ee5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class EntityTableComponent implements OnInit, OnChanges, OnDestroy {
* More than one row can be edited at the same time
*/
private enableEdit(record: EntityRecord<any>) {
const item = record.entity.properties;
const item = record.entity.properties || record.entity;
this.template.columns.forEach(column => {
column.title = column.validation?.mandatory && !column.title.includes('*') ? column.title + ' *' : column.title;

Expand Down

0 comments on commit b52ee5c

Please sign in to comment.