diff --git a/components/modal/confirm.tsx b/components/modal/confirm.tsx index 08d1d9ac0a..d83d4680a1 100644 --- a/components/modal/confirm.tsx +++ b/components/modal/confirm.tsx @@ -70,7 +70,6 @@ export default function confirm(config) { (props.okCancel ? runtimeLocale.okText : runtimeLocale.justOkText); props.cancelText = props.cancelText || runtimeLocale.cancelText; - let d; function close() { const unmountResult = ReactDOM.unmountComponentAtNode(div); if (unmountResult) {