From 86d3f0d35d04eb956613e8d3eb42576bf4e479b8 Mon Sep 17 00:00:00 2001 From: victor-meng <56978073+victor-meng@users.noreply.github.com> Date: Tue, 6 Oct 2020 20:22:54 -0700 Subject: [PATCH] Fix database offers not loaded when add collection pane is opened --- src/Explorer/Explorer.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Explorer/Explorer.ts b/src/Explorer/Explorer.ts index f7283a1a5..3a38cb183 100644 --- a/src/Explorer/Explorer.ts +++ b/src/Explorer/Explorer.ts @@ -3128,8 +3128,10 @@ export default class Explorer { } public async loadDatabaseOffers(): Promise { - this.databases()?.forEach(async (database: ViewModels.Database) => { - await database.loadOffer(); - }); + await Promise.all( + this.databases()?.map(async (database: ViewModels.Database) => { + await database.loadOffer(); + }) + ); } }