Fix M2O type in O2M creation when referencing UUID-PK collections (#7012)

Fixes #6883
This commit is contained in:
Rijk van Zanten
2021-07-27 22:48:46 +02:00
committed by GitHub
parent 07fb7d67a8
commit 86d3813230

View File

@@ -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: {},
});