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:
parent
ee7fe04bd1
commit
bfab715465
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue