Skip to content

Commit 68fc5b6

Browse files
committed
Fix create_entity_list_item missing entityId.
1 parent 4686d03 commit 68fc5b6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ayon_api/_api_helpers/lists.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,11 @@ def create_entity_list_item(
342342
"""
343343
if item_id is None:
344344
item_id = create_entity_id()
345+
346+
data = data or {}
345347
kwargs = {
346348
"id": item_id,
347-
"entityId": list_id,
349+
"entityId": data.pop("entityId"),
348350
}
349351
for key, value in (
350352
("position", position),

0 commit comments

Comments
 (0)