From f5c937d547d9fdc52287e4145f40f140aa952e3a Mon Sep 17 00:00:00 2001 From: Adam Zimmer Date: Wed, 26 Jun 2024 10:27:29 -0400 Subject: [PATCH] moving el.remove code to support safari (#10445) --- packages/editor/src/functions/assetFunctions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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?) => {