diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorCopyPathButton.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorCopyPathButton.tsx index 16322d05f..ea19e48bf 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorCopyPathButton.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorCopyPathButton.tsx @@ -18,9 +18,8 @@ export function UiEditorCopyPathButton({ try { await writeText(relativePath); setCopyState('copied'); - } catch (error) { + } catch { setCopyState('failed'); - throw error; } }