fix collection not null

This commit is contained in:
Nitwel
2020-09-18 11:06:35 +02:00
committed by rijkvanzanten
parent 4a4f79b0b6
commit b93025858c

View File

@@ -40,7 +40,7 @@ export default defineComponent({
},
});
const collection = computed(() => {
if (props.fieldData.field === null || props.fieldData.meta?.collection === null) return null;
if (props.fieldData.field === null || props.fieldData.meta?.collection === undefined) return null;
const relationData: Relation[] = relationsStore.getRelationsForField(
props.fieldData.meta?.collection,
props.fieldData.field