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))