From 02905ba1e29051cdcd6bd579955d7173383f149e Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 11 Jun 2024 01:48:25 -0500 Subject: [PATCH] fix: no JSON --- app/react-components/ecs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); }