diff --git a/packages/editor/src/functions/assetFunctions.ts b/packages/editor/src/functions/assetFunctions.ts index c9394ff314..3f4a3b3ea8 100644 --- a/packages/editor/src/functions/assetFunctions.ts +++ b/packages/editor/src/functions/assetFunctions.ts @@ -123,11 +123,12 @@ export const inputFileWithAddToScene = async ({ } } catch (err) { reject(err) + } finally { + el.remove() } } el.click() - el.remove() }) export const uploadProjectFiles = (projectName: string, files: File[], paths: string[], onProgress?) => {