Fix loading bug
This commit is contained in:
1 parent
6824e8d517
commit
0fa915072d
3 files changed
+11
-5
No files matched your search
+1
-1
@@ -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`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user