From c08006e1c3ac10f788fe7de37aaeffd96c20d871 Mon Sep 17 00:00:00 2001 From: Ilja Date: Tue, 22 Aug 2023 13:48:30 +0300 Subject: [PATCH] Add artificial delay to search --- packages/core/src/controllers/ApiController.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/controllers/ApiController.ts b/packages/core/src/controllers/ApiController.ts index 99801b70da..0b1e59ad11 100644 --- a/packages/core/src/controllers/ApiController.ts +++ b/packages/core/src/controllers/ApiController.ts @@ -143,7 +143,10 @@ export const ApiController = { search } }) - await Promise.all(data.map(({ image_id }) => ApiController._fetchWalletImage(image_id))) + await Promise.all([ + ...data.map(({ image_id }) => ApiController._fetchWalletImage(image_id)), + CoreHelperUtil.wait(300) + ]) state.search = data } }