diff --git a/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx b/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx index 13ec4ebd2..5e2384846 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx @@ -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?.collectionName || ctx?.field?.collectionName || collection.name); + const targetCollection = isTableOid && (ctx?.field?.collectionName || collection.name); const inheritCollections = useSelfAndChildrenCollections(targetCollection); const { collections = [] } = useCollectionManager(); const currentCollections = field?.dataSource