Skip to content

Commit

Permalink
fix(entity-table): fix check for button click functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourget committed Jun 13, 2019
1 parent f0de496 commit af7b60b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export class EntityTableComponent implements OnInit, OnDestroy, OnChanges {
* @internal
*/
onButtonClick(clickFunc: (entity: object) => void, entity: object) {
if (clickFunc instanceof Function) {
if (typeof clickFunc === 'function') {
clickFunc(entity);
}
}
Expand Down

0 comments on commit af7b60b

Please sign in to comment.