safe access to shortName on folder type

This commit is contained in:
Jakub Trllo 2024-06-18 12:01:51 +02:00
parent d9518b66bd
commit 2322d0f2ad

View file

@ -89,7 +89,7 @@ class FolderTypeItem:
def from_project_item(cls, folder_type_data):
return cls(
name=folder_type_data["name"],
short=folder_type_data["shortName"],
short=folder_type_data.get("shortName", ""),
icon=folder_type_data["icon"],
)