Fix "undefined" in className (#3939)

master
PFM 8 years ago committed by Eugen Rochko
parent 3d4e21f1ec
commit 099a3b4eac
  1. 2
      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>
);

Loading…
Cancel
Save