fix: form-data-template failed to clear option (#2709)

This commit is contained in:
katherinehhh 2023-09-25 09:43:22 +08:00 committed by GitHub
parent 51edb770bb
commit 6bc4434d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ export const Templates = ({ style = {}, form }) => {
filter: template?.dataScope, filter: template?.dataScope,
}, },
}} }}
onChange={(value) => handleTemplateDataChange(value.id, { ...value, ...template })} onChange={(value) => handleTemplateDataChange(value?.id, { ...value, ...template })}
targetField={getCollectionJoinField(`${template?.collection}.${template.titleField}`)} targetField={getCollectionJoinField(`${template?.collection}.${template.titleField}`)}
/> />
)} )}