mirror of
https://github.com/directus/directus.git
synced 2026-02-10 10:55:17 -05:00
Fix auto-gen translations not setting interface correctly
This commit is contained in:
@@ -116,6 +116,11 @@ function initLocalStore(collection: string, field: string, type: typeof localTyp
|
||||
);
|
||||
}
|
||||
|
||||
// Auto generate translations
|
||||
if (isExisting === false && type === 'translations') {
|
||||
state.fieldData.meta.interface = 'translations';
|
||||
}
|
||||
|
||||
if (type === 'file') useFile();
|
||||
else if (type === 'm2o') useM2O();
|
||||
else if (type === 'm2m' || type === 'files' || type === 'translations') useM2M();
|
||||
|
||||
Reference in New Issue
Block a user