mirror of
https://github.com/strapi/strapi.git
synced 2025-08-12 10:48:12 +00:00
Merge pull request #4153 from strapi/fix/self-referencing-many-way
Fix manyWay relation with self content type.
This commit is contained in:
commit
fdb8ea7102
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user