修正组件替换失败弹窗处理

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