mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +08:00
fix 'undefined' class bug on TintableSvg
This commit is contained in:
parent
2d71d4422e
commit
26f135c7b0
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user