[ADF-3301] - added a check when handler is null (#3554)

This commit is contained in:
Vito 2018-07-03 12:31:29 +01:00 committed by Eugenio Romano
parent 21304614e7
commit 87d7a6a27f

View File

@ -562,7 +562,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
handlerSub = Observable.of(true);
}
if (typeof action.execute === 'function') {
if (typeof action.execute === 'function' && handlerSub) {
handlerSub.subscribe(() => {
action.execute(node);
});