fix: des dep promise count check
This commit is contained in:
parent
92c85e57d3
commit
46f0a0cc07
|
@ -52,7 +52,7 @@ export default class Ecs {
|
||||||
promises.add(promise);
|
promises.add(promise);
|
||||||
promise.then(() => {
|
promise.then(() => {
|
||||||
promises.delete(promise);
|
promises.delete(promise);
|
||||||
if (!this.$$destructionDependencies.get(id)?.resolvers) {
|
if (0 === promises.size && !this.$$destructionDependencies.get(id)?.resolvers) {
|
||||||
this.$$destructionDependencies.delete(id);
|
this.$$destructionDependencies.delete(id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user