diff --git a/packages/components/src/Draft/Part/index.js b/packages/components/src/Draft/Part/index.js index d369424fb0b..050063dd091 100644 --- a/packages/components/src/Draft/Part/index.js +++ b/packages/components/src/Draft/Part/index.js @@ -34,7 +34,6 @@ const Part = props => { }; const focusCoords = (p, i) => { - console.log("focus coords", p, i); let pathString = `M ${p.x} ${props.part.topLeft.y} `; pathString += `L ${p.x} ${props.part.bottomRight.y} `; pathString += `M ${props.part.topLeft.x} ${p.y} `; diff --git a/packages/core/src/pattern.js b/packages/core/src/pattern.js index a8ced0b00ea..0b2c1d18017 100644 --- a/packages/core/src/pattern.js +++ b/packages/core/src/pattern.js @@ -141,7 +141,8 @@ Pattern.prototype.draft = function() { method + "() was undefined. Did you forget to return the Part object?" ); - this.parts[partName].render = this.wants(partName); + this.parts[partName].render = + this.parts[partName].render === false ? false : this.wants(partName); } else { this.parts[partName].render = false; } @@ -611,7 +612,7 @@ Pattern.prototype.getRenderProps = function() { props.height = this.height; props.settings = this.settings; props.parts = {}; - for (let p of Object.keys(this.parts)) { + for (let p in this.parts) { if (this.parts[p].render) { props.parts[p] = { paths: this.parts[p].paths,