mirror of
https://github.com/directus/directus.git
synced 2026-01-27 07:08:17 -05:00
fix m2a not savable (#9349)
This commit is contained in:
@@ -92,7 +92,7 @@ export default defineComponent({
|
||||
const relatedCollectionM2O = syncFieldDetailStoreProperty('relations.m2o.related_collection');
|
||||
const o2mCollection = syncFieldDetailStoreProperty('relations.o2m.collection');
|
||||
const o2mField = syncFieldDetailStoreProperty('relations.o2m.field');
|
||||
const oneAllowedCollections = syncFieldDetailStoreProperty('relations.m2o.meta.one_allowed_fields', []);
|
||||
const oneAllowedCollections = syncFieldDetailStoreProperty('relations.m2o.meta.one_allowed_collections', []);
|
||||
|
||||
const availableCollections = computed(() => {
|
||||
return orderBy(
|
||||
|
||||
@@ -98,6 +98,7 @@ export function setDefaults(updates: StateUpdates, state: State, { getCurrent }:
|
||||
set(updates, 'relations.o2m.field', `${currentCollection}_${currentCollectionPrimaryKeyField}`);
|
||||
set(updates, 'relations.m2o.collection', junctionName);
|
||||
set(updates, 'relations.m2o.field', 'item');
|
||||
set(updates, 'relations.m2o.meta.one_allowed_collections', []);
|
||||
set(updates, 'relations.m2o.meta.one_collection_field', 'collection');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user