diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Components/ComponentPanel.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Components/ComponentPanel.tsx index eee3d1d51..2b479574d 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Components/ComponentPanel.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Components/ComponentPanel.tsx @@ -57,7 +57,7 @@ export function ComponentPanel(props: ComponentPanelProps) { if (result?.ok) { setExpanded(true); setReplaceConfirmationOpen(false); - } else if (result === undefined) { + } else if (result !== undefined) { setReplaceConfirmationOpen(false); } }