fix(Community Permissions): handling collectible icons fixed

Closes: #11297
This commit is contained in:
Michał Cieślak 2023-07-05 10:38:47 +02:00 committed by Michał
parent 6ec40eb3cc
commit b5d3a0cff9
1 changed files with 2 additions and 2 deletions

View File

@ -48,11 +48,11 @@ QtObject {
sourceModel: communitiesModuleInst.collectiblesModel
proxyRoles: ExpressionRole {
function icon(icon) {
function collectibleIcon(icon) {
return !!icon ? icon : Style.png("tokens/DEFAULT-TOKEN")
}
name: "iconSource"
expression: icon(model.icon)
expression: collectibleIcon(model.icon)
}
}