Commit b2e39105 authored by Romain DELEAU's avatar Romain DELEAU

fix: error when close download dialog by clicking outside of the dialog

parent 4c586b10
...@@ -65,7 +65,7 @@ export class AppComponent { ...@@ -65,7 +65,7 @@ export class AppComponent {
} }
}); });
dialogRef.afterClosed().subscribe(data => { dialogRef.afterClosed().subscribe(data => {
if (data.result) { if (data && data.result) {
if (data.fileName == '') { if (data.fileName == '') {
fileName = "Scénario - RLG Maker"; fileName = "Scénario - RLG Maker";
this.titleService.setTitle('RLG Maker'); this.titleService.setTitle('RLG Maker');
......
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