Handle global dialogs

This commit is contained in:
Piotr Rogowski 2023-03-02 23:32:59 +01:00
parent 9ac8864fc2
commit cc4e710521
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
1 changed files with 4 additions and 6 deletions

View File

@ -681,12 +681,10 @@ export class INI implements ParserInterface {
P.all,
).parse(line);
if (!this.currentDialog) {
throw new Error('Dialog not set');
}
if (helpResult.status) {
this.result.dialogs[this.currentDialog!].help = INI.sanitize(helpResult.value.help);
if (this.currentDialog) {
if (helpResult.status) {
this.result.dialogs[this.currentDialog!].help = INI.sanitize(helpResult.value.help);
}
}
// TODO: missing fields: