fix 'undefined' class bug on TintableSvg
This commit is contained in:
@@ -59,7 +59,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<object className={ "mx_TintableSvg " + this.props.className }
|
<object className={ "mx_TintableSvg " + (this.props.className ? this.props.className : "") }
|
||||||
type="image/svg+xml"
|
type="image/svg+xml"
|
||||||
data={ this.props.src }
|
data={ this.props.src }
|
||||||
width={ this.props.width }
|
width={ this.props.width }
|
||||||
|
|||||||
Reference in New Issue
Block a user