mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ADF-3301] - added a check when handler is null (#3554)
This commit is contained in:
parent
21304614e7
commit
87d7a6a27f
@ -562,7 +562,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
|
|||||||
handlerSub = Observable.of(true);
|
handlerSub = Observable.of(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof action.execute === 'function') {
|
if (typeof action.execute === 'function' && handlerSub) {
|
||||||
handlerSub.subscribe(() => {
|
handlerSub.subscribe(() => {
|
||||||
action.execute(node);
|
action.execute(node);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user