Fix loading bug

This commit is contained in:
kolaflash committed 2026-01-07 13:01:16 +01:00
1 parent 6824e8d517
commit 0fa915072d
3 files changed
+11 -5

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ export const [loadScene, sceneCache] = useWithAsyncCache(
const entityInstanceMap = sceneEntiyMap.get(name)!;
entityInstanceMap.clear();
Promise.all(
await Promise.all(
data.entities.map(async (entity: Entity<unknown>) => {
await import(`#/entities/${entity.name}/index.ts`);