mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix plugins returning empty list
This commit is contained in:
parent
582dce426f
commit
5ccdfc258a
1 changed files with 4 additions and 0 deletions
|
|
@ -780,6 +780,8 @@ class InstanceModel(QtGui.QStandardItemModel):
|
|||
|
||||
def update_with_result(self, result):
|
||||
instance = result["instance"]
|
||||
if isinstance(instance, list):
|
||||
instance = instance.pop() if instance else None
|
||||
if instance is None:
|
||||
instance_id = self.controller.context.id
|
||||
else:
|
||||
|
|
@ -976,6 +978,8 @@ class TerminalModel(QtGui.QStandardItemModel):
|
|||
prepared_records = []
|
||||
instance_name = None
|
||||
instance = result["instance"]
|
||||
if isinstance(instance, list):
|
||||
instance = instance.pop() if instance else None
|
||||
if instance is not None:
|
||||
instance_name = instance.data["name"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue