mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
keep backwards compatibility
This commit is contained in:
parent
ead387c5ff
commit
15ee2a79bc
1 changed files with 2 additions and 2 deletions
|
|
@ -488,8 +488,8 @@ class EnumDef(AbtractAttrDef):
|
|||
|
||||
output = []
|
||||
if isinstance(items, dict):
|
||||
for key, value in items.items():
|
||||
output.append({"label": key, "value": value})
|
||||
for value, label in items.items():
|
||||
output.append({"label": label, "value": value})
|
||||
|
||||
elif isinstance(items, (tuple, list, set)):
|
||||
for item in items:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue