mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 16:52:18 +00:00
Update content-type-builder.js
This commit is contained in:
parent
c5cef7dcbb
commit
3b7dc6dde5
@ -172,9 +172,7 @@ module.exports = function createComponentBuilder() {
|
|||||||
this.unsetRelation(oldAttribute);
|
this.unsetRelation(oldAttribute);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Object.keys(oldAttribute).includes('autoPopulate')) {
|
newAttribute.autoPopulate = oldAttribute.autoPopulate === false ? false : undefined
|
||||||
newAttribute.autoPopulate = oldAttribute.autoPopulate;
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.setRelation({
|
return this.setRelation({
|
||||||
key,
|
key,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user