Commit abe02601 authored by Nate Graham's avatar Nate Graham
Browse files

Only display secondary Text in grid delegate if there is secondry text

Just because we *can* display secondry text, doesn't mean we *will.* So
check for that too. Fixes a common console warning.
parent 20ed77d8
Pipeline #57044 passed with stage
in 10 minutes and 55 seconds
......@@ -138,7 +138,7 @@ FocusScope {
mainText: model.display
fileUrl: model.url ? model.url : ""
secondaryText: gridView.delegateDisplaySecondaryText ? model.secondaryText : ""
secondaryText: gridView.delegateDisplaySecondaryText && model.secondaryText ? model.secondaryText : ""
imageUrl: model.imageUrl ? model.imageUrl : ''
imageFallbackUrl: defaultIcon
databaseId: model.databaseId
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment