Skip to content

Commit a10ff04

Browse files
committed
fix: Fix deserialisation of Structures
1 parent f520fe9 commit a10ff04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tiled/server/schemas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ class DataSource(BaseModel, Generic[StructureT]):
175175
@classmethod
176176
def from_orm(cls, orm: tiled.catalog.orm.DataSource) -> DataSource:
177177
if hasattr(orm.structure, "structure"):
178-
structure_cls = STRUCTURE_TYPES[orm.structure_family]
179-
structure = structure_cls.from_json(orm.structure.structure)
178+
structure = orm.structure.structure
180179
else:
181180
structure = None
182181
return cls(

0 commit comments

Comments
 (0)