Fix error when creating a case with no noteDetails
This commit is contained in:
parent
434758b8ad
commit
338855de15
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ export class CasesPlugin extends ZeppelinPlugin<ICasesPluginConfig> {
|
|||
pp_name: ppName,
|
||||
});
|
||||
|
||||
if (opts.reason || opts.noteDetails.length) {
|
||||
if (opts.reason || (opts.noteDetails && opts.noteDetails.length)) {
|
||||
await this.createCaseNote(createdCase, opts.modId, opts.reason || "", opts.automatic, false, opts.noteDetails);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue