fix(CreateCategoryPopup): make saving categories work again

Due to recent refactors, this popup was still referencing unreachable
components. This commit fixes this.

Fixes #2983
This commit is contained in:
Pascal Precht 2021-07-21 12:26:30 +02:00 committed by Iuri Matias
parent ee7fe04bd1
commit bfab715465
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ StatusModal {
let error = ""
if (isEdit) {
error = chatsModel.communities.editCommunityCategory(communityId, categoryId, Utils.filterXSS(nameInput.text), JSON.stringify(channels))
error = chatsModel.communities.editCommunityCategory(communityId, categoryId, Utils.filterXSS(popup.contentComponent.categoryName.text), JSON.stringify(channels))
} else {
error = chatsModel.communities.createCommunityCategory(communityId, Utils.filterXSS(popup.contentComponent.categoryName.text), JSON.stringify(channels))
}