about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorPFM <info@eyesight.jp>2017-06-25 23:02:56 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-25 16:02:56 +0200
commit099a3b4eaccc37338eda9f45fc26991ea7115200 (patch)
tree263976c1d7da6d0046d6f4bd4fe03053dc2e0513 /app
parent3d4e21f1ecd001d82e8363eb7d4086c7fc6064ba (diff)
Fix "undefined" in className (#3939)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/components/permalink.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/permalink.js b/app/javascript/mastodon/components/permalink.js
index 5d3e4738d..0b7d0a65a 100644
--- 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>
     );