mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Ignore empty labels, then still use name like other asset models
This commit is contained in:
parent
9721df1574
commit
ff88f201ec
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class AssetModel(TreeModel):
|
|||
for asset in current_assets:
|
||||
# get label from data, otherwise use name
|
||||
data = asset.get("data", {})
|
||||
label = data.get("label", asset["name"])
|
||||
label = data.get("label") or asset["name"]
|
||||
tags = data.get("tags", [])
|
||||
|
||||
# store for the asset for optimization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue