Skip to content

A platform for community discussion. Free, open, simple.

UX: trim chat channel description (#36454)

David Battersby02a91a8b28f8
diff --git a/plugins/chat/assets/javascripts/discourse/models/chat-channel.js b/plugins/chat/assets/javascripts/discourse/models/chat-channel.js
index bd826cc16ce..707382e9c74 100644
--- a/plugins/chat/assets/javascripts/discourse/models/chat-channel.js
+++ b/plugins/chat/assets/javascripts/discourse/models/chat-channel.js
@@ -170,7 +170,7 @@ export default class ChatChannel {
}
get escapedDescription() {
- return escapeExpression(this.description);
+ return escapeExpression(this.description?.trim());
}
get slugifiedTitle() {