mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 12:18:15 +08:00
fix(plugin-fm): fix attachment component selectable check (#4563)
This commit is contained in:
parent
d7866a6b51
commit
3f8ab46dc1
@ -390,7 +390,8 @@ export function Uploader({ rules, ...props }: UploadProps) {
|
||||
|
||||
const { mimetype: accept, size } = rules ?? {};
|
||||
const sizeHint = useSizeHint(size);
|
||||
const selectable = !disabled && (multiple || !(value || pendingList.length));
|
||||
const selectable =
|
||||
!disabled && (multiple || ((!value || (Array.isArray(value) && !value.length)) && !pendingList.length));
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user