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 2b479574d..c1b9bcee7 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 @@ -65,7 +65,7 @@ export function ComponentPanel(props: ComponentPanelProps) { function removeComponent() { const result = setComponent(null); if (result?.ok) setRemoveConfirmationOpen(false); - else if (result === undefined) setRemoveConfirmationOpen(false); + else if (result !== undefined) setRemoveConfirmationOpen(false); } return (