修正组件移除失败弹窗处理

移除操作失败时关闭确认弹窗以展示错误;未执行时保留弹窗。
This commit is contained in:
2026-09-12 21:19:36 +08:00
parent f7666339fe
commit e49d6741ca
@@ -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 (