Remove temp fields from m2a

This commit is contained in:
rijkvanzanten
2020-10-09 19:35:41 -04:00
parent 676d78f6ee
commit 58dfa5d717
3 changed files with 85 additions and 54 deletions

View File

@@ -7,6 +7,8 @@ export function getRelationType(getRelationOptions: {
}): 'm2o' | 'o2m' | 'm2a' | null {
const { relation, collection, field } = getRelationOptions;
if (!relation) return null;
if (
relation.many_collection === collection &&
relation.many_field === field &&