mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +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);
|
||||
}
|
||||
|
||||
if (Object.keys(oldAttribute).includes('autoPopulate')) {
|
||||
newAttribute.autoPopulate = oldAttribute.autoPopulate;
|
||||
}
|
||||
newAttribute.autoPopulate = oldAttribute.autoPopulate === false ? false : undefined
|
||||
|
||||
return this.setRelation({
|
||||
key,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user