mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix path calculated from hierarchy item
This commit is contained in:
parent
4a4dde620b
commit
1027a41e8a
1 changed files with 2 additions and 2 deletions
|
|
@ -191,12 +191,12 @@ def _get_folder_item_from_hierarchy_item(item):
|
||||||
name = item["name"]
|
name = item["name"]
|
||||||
path_parts = list(item["parents"])
|
path_parts = list(item["parents"])
|
||||||
path_parts.append(name)
|
path_parts.append(name)
|
||||||
|
path = "/" + "/".join(path_parts)
|
||||||
return FolderItem(
|
return FolderItem(
|
||||||
item["id"],
|
item["id"],
|
||||||
item["parentId"],
|
item["parentId"],
|
||||||
name,
|
name,
|
||||||
"/".join(path_parts),
|
path,
|
||||||
item["folderType"],
|
item["folderType"],
|
||||||
item["label"],
|
item["label"],
|
||||||
None,
|
None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue