diff --git a/app/ecs/ecs.js b/app/ecs/ecs.js index ea1d690..7e8f84e 100644 --- a/app/ecs/ecs.js +++ b/app/ecs/ecs.js @@ -52,7 +52,7 @@ export default class Ecs { promises.add(promise); promise.then(() => { promises.delete(promise); - if (!this.$$destructionDependencies.get(id)?.resolvers) { + if (0 === promises.size && !this.$$destructionDependencies.get(id)?.resolvers) { this.$$destructionDependencies.delete(id); } });