mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 19:27:34 +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;
|
return newAttribute;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (target === modelName && nature !== 'oneWay') {
|
if (target === modelName && nature !== 'oneWay' && nature !== 'manyWay') {
|
||||||
newState = newState.updateIn([...basePath, 'attributes', key], () => {
|
newState = newState.updateIn([...basePath, 'attributes', key], () => {
|
||||||
const newAttribute = state
|
const newAttribute = state
|
||||||
.get('temporaryAttributeRelation')
|
.get('temporaryAttributeRelation')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user