mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 12:27:33 +00:00
fix: filenames
This commit is contained in:
parent
8de9647869
commit
207ab8caef
@ -73,7 +73,7 @@ export const CollectionFieldInternalFieldV2: React.FC = (props: Props) => {
|
||||
const collectionField = getField(fieldSchema.name) || getCollectionJoinField(fieldSchema.name as string);
|
||||
const targetCollection = getCollection(collectionField?.target);
|
||||
let fieldNames = {};
|
||||
if (collectionField?.target) {
|
||||
if (collectionField?.target && targetCollection) {
|
||||
fieldNames = {
|
||||
label: collectionField?.targetKey || targetCollection.getPrimaryKey(),
|
||||
value: collectionField?.targetKey || targetCollection.getPrimaryKey(),
|
||||
|
Loading…
Reference in New Issue
Block a user