layout manager promise reuse fix

This commit is contained in:
Yuri Kuznetsov
2024-12-15 16:52:15 +02:00
parent 532a5bb37b
commit f6fac2c236
+4 -6
View File
@@ -164,9 +164,7 @@ class LayoutManager {
}
if (key in this.fetchPromises) {
this.fetchPromises[key].then(layout => {
callback(layout);
});
this.fetchPromises[key].then(layout => callback(layout));
return;
}
@@ -180,10 +178,10 @@ class LayoutManager {
if (this.cache) {
this.cache.set('app-layout', key, layout);
}
return layout;
})
.finally(() => {
delete this.fetchPromises[key];
});
.finally(() => delete this.fetchPromises[key]);
}
/**