Skip to content
Permalink
Browse files

fix(gutter): 'undefined is not a valid value for property 'gutter'

  • Loading branch information...
wengkhing
wengkhing committed Jan 15, 2018
1 parent 6c10653 commit 0ad3a94045cda8ec8825bf9d9ee6da165812b28c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Block/index.js
@@ -179,9 +179,9 @@ function generateChildClasses (props, parentLayout, gutter) {
}
}

if (validGutterValue.test(gutter)) {
if (gutter && validGutterValue.test(gutter)) {
style.margin = `${parseInt(gutter.replace('px', '')) / 2}px`
} else {
} else if (gutter) {
console.warn(`'${gutter}' is not a valid value for property 'gutter'.\nPlease use numerical value postfix with 'px'. Example: 8px'`)
}

0 comments on commit 0ad3a94

Please sign in to comment.
You can’t perform that action at this time.