Skip to content

Commit

Permalink
fix(slack): slack image rendered requires text in title (#188)
Browse files Browse the repository at this point in the history
* fix(slack): slack image rendered requires title

* fix(slack): replaced || for null coalescing
  • Loading branch information
tomkcey committed Oct 7, 2021
1 parent f283196 commit 53141f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/channels/slack/renderers/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class SlackImageRenderer extends ImageRenderer {
type: 'image',
title: {
type: 'plain_text',
text: payload.title!
text: payload.title ?? 'image_title'
},
image_url: payload.image,
alt_text: 'image'
Expand Down

0 comments on commit 53141f1

Please sign in to comment.