mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: ts 错误修复
This commit is contained in:
parent
a2dc1296b2
commit
bf0e4d046e
@ -567,9 +567,9 @@ function DialogActionPanel({
|
||||
|
||||
const hasRequired =
|
||||
Array.isArray(currentModal?.modal.inputParams?.required) &&
|
||||
currentModal.modal.inputParams.required.length;
|
||||
currentModal!.modal.inputParams.required.length;
|
||||
React.useEffect(() => {
|
||||
if (hasRequired && !currentModal.data) {
|
||||
if (hasRequired && !currentModal?.data) {
|
||||
handleDataChange({});
|
||||
}
|
||||
}, [hasRequired]);
|
||||
|
Loading…
Reference in New Issue
Block a user