Fix database offers not loaded when add collection pane is opened

This commit is contained in:
victor-meng 2020-10-06 20:22:54 -07:00 committed by GitHub
parent c08a1872cc
commit 86d3f0d35d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -3128,8 +3128,10 @@ export default class Explorer {
}
public async loadDatabaseOffers(): Promise<void> {
this.databases()?.forEach(async (database: ViewModels.Database) => {
await Promise.all(
this.databases()?.map(async (database: ViewModels.Database) => {
await database.loadOffer();
});
})
);
}
}