mirror of https://github.com/vector-im/riot-web
fix 'undefined' class bug on TintableSvg
parent
2d71d4422e
commit
26f135c7b0
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue