Fixing the markdown css bug

This commit is contained in:
Chris Cowan 2017-01-05 08:26:53 -07:00
parent 5ce7d856fb
commit 0b72290f6a

View file

@ -28,11 +28,12 @@ export default React.createClass({
${value}
}`;
lessC.render(lessSrc, { compress: true }, (e, output) => {
const parts = { markdown_less: value };
if (output) {
this.props.onChange({ markdown_css: output.css });
parts.markdown_css = output.css;
}
this.props.onChange(parts);
});
this.props.onChange({ markdown_less: value });
},
render() {