diff --git a/src/app/help/help.component.ts b/src/app/help/help.component.ts index 77db6ec..019b469 100644 --- a/src/app/help/help.component.ts +++ b/src/app/help/help.component.ts @@ -44,9 +44,11 @@ export class HelpComponent implements OnInit { } deleteHelp() { - this.api.delete('/help/' + this.route, (ignore, ignore) => { - this.content = new HelpModel().deserialize({text: null, level: 'none'}); - this.edit = false; + this.api.delete('/help/' + this.route, (ignore, err) => { + if (!err) { + this.content = new HelpModel().deserialize({text: null, level: 'none'}); + this.edit = false; + } }); } }