Commit 88173702 authored by avovchuk's avatar avovchuk

Fix crash if no subscription on dialog result

parent 0b84bc78
......@@ -61,6 +61,8 @@ export abstract class DialogComponent implements OnDestroy {
* OnDestroy handler
*/
ngOnDestroy(): void {
this.observer.next(this.result);
if(this.observer) {
this.observer.next(this.result);
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment