mirror of
https://github.com/directus/directus.git
synced 2026-02-03 00:24:58 -05:00
Fix auto-name translations
This commit is contained in:
@@ -508,10 +508,6 @@ function initLocalStore(
|
||||
one_primary: type === 'files' ? 'id' : '',
|
||||
},
|
||||
];
|
||||
|
||||
if (type === 'translations') {
|
||||
state.fieldData.field = 'translations';
|
||||
}
|
||||
}
|
||||
|
||||
watch(
|
||||
@@ -638,6 +634,9 @@ function initLocalStore(
|
||||
}
|
||||
|
||||
state.relations[1].many_field = `${state.relations[1].one_collection}_${state.relations[1].one_primary}`;
|
||||
|
||||
state.fieldData.field = 'translations';
|
||||
state.relations[0].one_field = 'translations';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user