Skip to content
Snippets Groups Projects
Commit 099a3b4e authored by PFM's avatar PFM Committed by Eugen Rochko
Browse files

Fix "undefined" in className (#3939)

parent 3d4e21f1
No related branches found
No related tags found
No related merge requests found
......@@ -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>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment