Skip to content

Commit

Permalink
fix default output of folder type items
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jun 24, 2024
1 parent 3de2d65 commit 04e257a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/ayon_core/tools/utils/folders_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _thread_getter(self, project_name):
folder_items = self._controller.get_folder_items(
project_name, FOLDERS_MODEL_SENDER_NAME
)
folder_type_items = {}
folder_type_items = []
if hasattr(self._controller, "get_folder_type_items"):
folder_type_items = self._controller.get_folder_type_items(
project_name, FOLDERS_MODEL_SENDER_NAME
Expand Down Expand Up @@ -194,7 +194,7 @@ def _on_refresh_thread(self, thread_id):
return
if thread.failed:
# TODO visualize that refresh failed
folder_items, folder_type_items = {}, {}
folder_items, folder_type_items = {}, []
else:
folder_items, folder_type_items = thread.get_result()
self._fill_items(folder_items, folder_type_items)
Expand Down

0 comments on commit 04e257a

Please sign in to comment.