Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2025-04-17 03:44:59 +00:00
commit ff772fc5cf

View File

@ -31,12 +31,7 @@ export const useFieldModeOptions = (props?) => {
if (!collectionField || !collectionField?.interface) {
return;
}
if (
!['o2o', 'oho', 'obo', 'o2m', 'linkTo', 'm2o', 'm2m', 'updatedBy', 'createdBy', 'mbm', 'attachmentURL'].includes(
collectionField.interface,
)
)
return;
if (!['hasOne', 'hasMany', 'belongsTo', 'belongsToMany', 'belongsToArray'].includes(collectionField.type)) return;
const collection = getCollection(collectionField.target);
if (collection?.template === 'file') {
return isReadPretty