fix 'undefined' class bug on TintableSvg

This commit is contained in:
Matthew Hodgson 2016-04-14 21:44:05 +01:00
parent 2d71d4422e
commit 26f135c7b0

View File

@ -59,7 +59,7 @@ module.exports = React.createClass({
render: function() {
return (
<object className={ "mx_TintableSvg " + this.props.className }
<object className={ "mx_TintableSvg " + (this.props.className ? this.props.className : "") }
type="image/svg+xml"
data={ this.props.src }
width={ this.props.width }