From b93025858c485ccdd8db3fbb327503a39c67831e Mon Sep 17 00:00:00 2001 From: Nitwel Date: Fri, 18 Sep 2020 11:06:35 +0200 Subject: [PATCH] fix collection not null --- app/src/interfaces/many-to-one/options.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/interfaces/many-to-one/options.vue b/app/src/interfaces/many-to-one/options.vue index 317498aa96..6da15a6f75 100644 --- a/app/src/interfaces/many-to-one/options.vue +++ b/app/src/interfaces/many-to-one/options.vue @@ -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