logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 099a3b4eaccc37338eda9f45fc26991ea7115200
parent: 3d4e21f1ecd001d82e8363eb7d4086c7fc6064ba
Author: PFM <info@eyesight.jp>
Date:   Sun, 25 Jun 2017 23:02:56 +0900

Fix "undefined" in className (#3939)


Diffstat:

Mapp/javascript/mastodon/components/permalink.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/components/permalink.js b/app/javascript/mastodon/components/permalink.js @@ -25,7 +25,7 @@ export default class Permalink extends React.PureComponent { const { href, children, className, ...other } = this.props; return ( - <a href={href} onClick={this.handleClick} {...other} className={'permalink ' + className}> + <a href={href} onClick={this.handleClick} {...other} className={`permalink${className ? ' ' + className : ''}`}> {children} </a> );