mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
1b49e542cf
@ -85,6 +85,7 @@ export const SchemaSettingsDefaultValue = function DefaultValueConfigure(props:
|
||||
const tableCtx = useTableBlockContext();
|
||||
const isAllowContextVariable =
|
||||
collectionField?.interface === 'm2m' ||
|
||||
collectionField?.interface === 'mbm' ||
|
||||
(parentCollectionField?.type === 'hasMany' && collectionField?.interface === 'm2o');
|
||||
|
||||
const returnScope = useCallback(
|
||||
|
@ -101,7 +101,9 @@ export const useContextAssociationFields = ({
|
||||
const children =
|
||||
getChildren(
|
||||
getFilterOptions(collectionName).filter((v) => {
|
||||
const isAssociationField = ['hasOne', 'hasMany', 'belongsTo', 'belongsToMany'].includes(v.type);
|
||||
const isAssociationField = ['hasOne', 'hasMany', 'belongsTo', 'belongsToMany', 'belongsToArray'].includes(
|
||||
v.type,
|
||||
);
|
||||
return isAssociationField;
|
||||
}),
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user