From dddd72ec8313aa8df6113153200e0f5743c4d92c Mon Sep 17 00:00:00 2001 From: crazywoola <427733928@qq.com> Date: Thu, 24 Oct 2024 17:25:30 +0800 Subject: [PATCH] fix: lint --- web/app/components/base/app-icon-picker/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/app-icon-picker/utils.ts b/web/app/components/base/app-icon-picker/utils.ts index 14c9ae3f28..de229ccdca 100644 --- a/web/app/components/base/app-icon-picker/utils.ts +++ b/web/app/components/base/app-icon-picker/utils.ts @@ -1,4 +1,4 @@ -export const createImage = (url: string) => +const createImage = (url: string) => new Promise((resolve, reject) => { const image = new Image() image.addEventListener('load', () => resolve(image))