mirror of
https://github.com/directus/directus.git
synced 2026-02-19 10:14:33 -05:00
Fix M2O interface in junction tables (#14078)
This commit is contained in:
@@ -26,7 +26,7 @@ export function useRelationM2O(collection: Ref<string>, field: Ref<string>) {
|
||||
const relationInfo = computed<RelationM2O | undefined>(() => {
|
||||
const relations = relationsStore.getRelationsForField(collection.value, field.value);
|
||||
|
||||
if (relations.length !== 1) return undefined;
|
||||
if (relations.length === 0) return undefined;
|
||||
|
||||
const relation = relations[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user