regression: error during upload if description is empty (#32888)

pull/32889/head^2
Guilherme Gazzo 1 year ago committed by GitHub
parent 393e613068
commit 39fb14e155
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/meteor/server/services/messages/hooks/BeforeSaveMarkdownParser.ts

@ -31,7 +31,7 @@ export class BeforeSaveMarkdownParser {
message.md = parse(message.msg, config);
}
if (message.attachments?.[0]?.description !== undefined) {
if (message.attachments?.[0]?.description) {
message.attachments[0].descriptionMd = parse(message.attachments[0].description, config);
}
} catch (e) {

Loading…
Cancel
Save