Update content-type-builder.js

This commit is contained in:
Patai Adam 2020-01-10 09:58:47 +01:00 committed by GitHub
parent c5cef7dcbb
commit 3b7dc6dde5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,