From cf8bcf627bc708cd5a67d7bbfd8d94c531d70e01 Mon Sep 17 00:00:00 2001 From: soupette Date: Tue, 1 Oct 2019 12:42:42 +0200 Subject: [PATCH] Fix manyWay with self ct --- .../admin/src/containers/App/reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/strapi-plugin-content-type-builder/admin/src/containers/App/reducer.js b/packages/strapi-plugin-content-type-builder/admin/src/containers/App/reducer.js index 4c2da2f6a2..ee37c8ec7e 100644 --- a/packages/strapi-plugin-content-type-builder/admin/src/containers/App/reducer.js +++ b/packages/strapi-plugin-content-type-builder/admin/src/containers/App/reducer.js @@ -177,7 +177,7 @@ function appReducer(state = initialState, action) { return newAttribute; }); - if (target === modelName && nature !== 'oneWay') { + if (target === modelName && nature !== 'oneWay' && nature !== 'manyWay') { newState = newState.updateIn([...basePath, 'attributes', key], () => { const newAttribute = state .get('temporaryAttributeRelation')