chore: ts 错误修复

This commit is contained in:
2betop 2024-03-07 17:00:46 +08:00
parent a2dc1296b2
commit bf0e4d046e

View File

@ -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]);