diff --git a/app/src/composables/use-relation/use-relation-m2o.ts b/app/src/composables/use-relation/use-relation-m2o.ts index 12fd072b48..7189668192 100644 --- a/app/src/composables/use-relation/use-relation-m2o.ts +++ b/app/src/composables/use-relation/use-relation-m2o.ts @@ -26,7 +26,7 @@ export function useRelationM2O(collection: Ref, field: Ref) { const relationInfo = computed(() => { const relations = relationsStore.getRelationsForField(collection.value, field.value); - if (relations.length !== 1) return undefined; + if (relations.length === 0) return undefined; const relation = relations[0];