diff --git a/src/plugins/Cases.ts b/src/plugins/Cases.ts index eb3ed3e0..bb12d400 100644 --- a/src/plugins/Cases.ts +++ b/src/plugins/Cases.ts @@ -94,7 +94,7 @@ export class CasesPlugin extends ZeppelinPlugin { 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); }