mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 20:40:18 +00:00
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…
x
Reference in New Issue
Block a user