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