From bfab71546537115132ddaec8efc34f3855b8a540 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 21 Jul 2021 12:26:30 +0200 Subject: [PATCH] fix(CreateCategoryPopup): make saving categories work again Due to recent refactors, this popup was still referencing unreachable components. This commit fixes this. Fixes #2983 --- .../AppLayouts/Chat/CommunityComponents/CreateCategoryPopup.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CreateCategoryPopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CreateCategoryPopup.qml index 33fc46adf9..b84a69f7e4 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CreateCategoryPopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CreateCategoryPopup.qml @@ -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)) }