diff --git a/packages/strapi-plugin-content-manager/admin/src/components/InputJSONWithErrors/index.js b/packages/strapi-plugin-content-manager/admin/src/components/InputJSONWithErrors/index.js index cbcdbeaba1..a0d131006b 100644 --- a/packages/strapi-plugin-content-manager/admin/src/components/InputJSONWithErrors/index.js +++ b/packages/strapi-plugin-content-manager/admin/src/components/InputJSONWithErrors/index.js @@ -42,8 +42,6 @@ class InputJSONWithErrors extends React.Component { ...rest } = this.props; - console.log({ labelIcon }); - const handleBlur = isFunction(onBlur) ? onBlur : this.handleBlur; return ( diff --git a/packages/strapi-plugin-i18n/admin/src/utils/mutateCTBContentTypeSchema.js b/packages/strapi-plugin-i18n/admin/src/utils/mutateCTBContentTypeSchema.js index 09877447ff..12e3940032 100644 --- a/packages/strapi-plugin-i18n/admin/src/utils/mutateCTBContentTypeSchema.js +++ b/packages/strapi-plugin-i18n/admin/src/utils/mutateCTBContentTypeSchema.js @@ -38,7 +38,7 @@ const mutateCTBContentTypeSchema = (nextSchema, prevSchema) => { } const isNextSchemaLocalized = get(nextSchema, localizedPath, false); - const isPrevSchemaLocalized = get(prevSchema, localizedPath, false); + const isPrevSchemaLocalized = get(prevSchema, ['schema', ...localizedPath], false); // No need to perform modification on the schema, if the i18n feature was not changed // at the ct level diff --git a/packages/strapi-plugin-i18n/admin/src/utils/tests/mutateCTBContentTypeSchema.test.js b/packages/strapi-plugin-i18n/admin/src/utils/tests/mutateCTBContentTypeSchema.test.js index 48a689e154..c30a80761d 100644 --- a/packages/strapi-plugin-i18n/admin/src/utils/tests/mutateCTBContentTypeSchema.test.js +++ b/packages/strapi-plugin-i18n/admin/src/utils/tests/mutateCTBContentTypeSchema.test.js @@ -89,10 +89,12 @@ describe('i18n | utils ', () => { expect( mutateSchema(ctSchema, { - pluginOptions: { - pluginA: { foo: 'bar' }, - i18n: { localized: true }, - pluginB: { foo: 'bar' }, + schema: { + pluginOptions: { + pluginA: { foo: 'bar' }, + i18n: { localized: true }, + pluginB: { foo: 'bar' }, + }, }, }) ).toEqual(ctSchema);