From daacd2ffe38adac0089e80ecceb16b0247767b30 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 25 Apr 2023 11:25:07 +0200 Subject: [PATCH] FIX: chat-composer is now using glimmer (#47) As a result of this change the channel is now accessible through `this.args.channel` and not `this.chatChannel`. Longer term we want a better solution here, but this should fix the issue for now. --- assets/javascripts/initializers/chat-summary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/initializers/chat-summary.js b/assets/javascripts/initializers/chat-summary.js index 50bbf0d0..ee53684c 100644 --- a/assets/javascripts/initializers/chat-summary.js +++ b/assets/javascripts/initializers/chat-summary.js @@ -19,7 +19,7 @@ function initializeChatChannelSummary(api) { @action showChannelSummary() { showModal("ai-summary").setProperties({ - targetId: this.chatChannel.id, + targetId: this.args.channel.id, targetType: "chat_channel", allowTimeframe: true, });