mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:38:13 +00:00
fix: tableoid should pointed to target collection in assciation field data scope config (#3053)
This commit is contained in:
parent
54caf05ba4
commit
cd76ae7e63
@ -17,7 +17,7 @@ function useOptions({ filter, isTableOid }: CollectionSelectProps) {
|
||||
const field: any = useField();
|
||||
const ctx: any = useContext(FilterContext);
|
||||
const collection = useCollection();
|
||||
const targetCollection = isTableOid && (ctx?.field?.collectionName || collection.name);
|
||||
const targetCollection = isTableOid && (ctx?.field?.collectionName || ctx.collectionName || collection.name);
|
||||
const inheritCollections = useSelfAndChildrenCollections(targetCollection);
|
||||
const { collections = [] } = useCollectionManager();
|
||||
const currentCollections = field?.dataSource
|
||||
|
Loading…
Reference in New Issue
Block a user