Skip to content

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

FIX: Correct category name for auto_join_users_info in chat (#25739)

Jan Cernika03b9f160238
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.js b/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.js
index 5fbf513868c..ae1052ada98 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.js
+++ b/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.js
@@ -57,9 +57,7 @@ export default class ChatModalCreateChannel extends Component {
}
get categoryName() {
- return this.categorySelected && isPresent(this.name)
- ? escapeExpression(this.name)
- : null;
+ return this.categorySelected ? escapeExpression(this.category?.name) : null;
}
@action