fix: fileManager selector should be radio when not allow multiple (#2884)

This commit is contained in:
katherinehhh 2023-10-23 19:12:12 +08:00 committed by GitHub
parent 41f913b12f
commit 08f213bc16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ const InternalFileManager = (props) => {
const pickerProps = {
size: 'small',
fieldNames,
multiple: ['o2m', 'm2m'].includes(collectionField?.interface),
multiple: ['o2m', 'm2m'].includes(collectionField?.interface) && multiple,
association: {
target: collectionField?.target,
},