Fix auto-gen translations not setting interface correctly

This commit is contained in:
rijkvanzanten
2020-12-08 15:57:53 -05:00
parent 996e9f34ac
commit 2ed1e92d5c

View File

@@ -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();