From af7b60bedc626216690086a8d9fddab3272db596 Mon Sep 17 00:00:00 2001 From: cbourget Date: Thu, 13 Jun 2019 13:04:28 -0400 Subject: [PATCH] fix(entity-table): fix check for button click functions --- .../src/lib/entity/entity-table/entity-table.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/lib/entity/entity-table/entity-table.component.ts b/packages/common/src/lib/entity/entity-table/entity-table.component.ts index 140326a14b..f2b9f454f3 100644 --- a/packages/common/src/lib/entity/entity-table/entity-table.component.ts +++ b/packages/common/src/lib/entity/entity-table/entity-table.component.ts @@ -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); } }