mirror of
https://github.com/flarum/core.git
synced 2025-07-12 04:16:24 +02:00
check class string before concat
This commit is contained in:
@ -18,7 +18,7 @@ export default class EventPost extends Post {
|
||||
attrs() {
|
||||
const attrs = super.attrs();
|
||||
|
||||
attrs.className += ' EventPost ' + ucfirst(this.props.post.contentType()) + 'Post';
|
||||
attrs.className = (attrs.className || '') + ' EventPost ' + ucfirst(this.props.post.contentType()) + 'Post';
|
||||
|
||||
return attrs;
|
||||
}
|
||||
|
Reference in New Issue
Block a user