mirror of
https://github.com/directus/directus.git
synced 2026-01-28 13:38:10 -05:00
Fix M2O type in O2M creation when referencing UUID-PK collections (#7012)
Fixes #6883
This commit is contained in:
@@ -304,8 +304,8 @@ function initLocalStore(collection: string, field: string, type: LocalType): voi
|
||||
$type: 'manyRelated',
|
||||
collection: collectionName,
|
||||
field: fieldName,
|
||||
type: collectionExists(collectionName)
|
||||
? fieldsStore.getPrimaryKeyFieldForCollection(collectionName)?.type
|
||||
type: collectionExists(collection)
|
||||
? fieldsStore.getPrimaryKeyFieldForCollection(collection)?.type
|
||||
: 'integer',
|
||||
schema: {},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user