fixes WEBHOOKY-GN
@@ -142,6 +142,7 @@ impl From<NewFunction> for FormattedMessage {
blocks[0].accessory = Some(button);
+ if !item.logs.is_empty() {
let logs = MessageBlock {
block_type: MessageBlockType::Context,
elements: vec![slack_chat_api::BlockOption::MessageBlockText(MessageBlockText {
@@ -157,6 +158,7 @@ impl From<NewFunction> for FormattedMessage {
blocks.push(logs);
}
+ }
FormattedMessage {
channel: Default::default(),
