修正组件移除失败弹窗处理
移除操作失败时关闭确认弹窗以展示错误;未执行时保留弹窗。
This commit is contained in:
+1
-1
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user