diff --git a/app/react-components/ecs.jsx b/app/react-components/ecs.jsx index aff17f7..ce08849 100644 --- a/app/react-components/ecs.jsx +++ b/app/react-components/ecs.jsx @@ -20,7 +20,7 @@ export default function EcsComponent() { delete updatedEntities[id]; } else { - updatedEntities[id] = ecs.get(parseInt(id)).toJSON(); + updatedEntities[id] = ecs.get(parseInt(id)); if (updatedEntities[id].MainEntity) { setMainEntity(ecs.get(parseInt(id))); }