From 08e46b870e1984c97fb756977c2221a6eeedf800 Mon Sep 17 00:00:00 2001 From: Alex Jbanca Date: Fri, 6 Sep 2024 14:11:27 +0300 Subject: [PATCH] fix(performance): Replace FastExpressionRole with JoinRole in AssetsView --- ui/imports/shared/views/AssetsView.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/imports/shared/views/AssetsView.qml b/ui/imports/shared/views/AssetsView.qml index d1c7497194..4470ca847d 100644 --- a/ui/imports/shared/views/AssetsView.qml +++ b/ui/imports/shared/views/AssetsView.qml @@ -95,10 +95,10 @@ Control { proxyRoles: [ // helper role for rendering section delegate - FastExpressionRole { + JoinRole { name: "isCommunity" - expression: !!communityId ? "community" : "" - expectedRoles: ["communityId"] + roleNames: ["communityId"] + separator: "" }, FastExpressionRole { name: "marketBalance" @@ -252,7 +252,8 @@ Control { model: root.loading ? loadingModel : regularModel section { - property: "isCommunity" + property: "communityId" + criteria: ViewSection.FirstCharacter delegate: AssetsSectionDelegate { width: parent.width text: qsTr("Community minted")