1
0
mirror of https://github.com/flarum/core.git synced 2025-07-15 05:46:24 +02:00

Fix error on index page

This commit is contained in:
Toby Zerner
2015-08-26 16:56:06 +09:30
parent df385b7df2
commit c5edf48bf2

View File

@ -130,7 +130,9 @@ export default class DiscussionListItem extends Component {
* @return {Boolean} * @return {Boolean}
*/ */
active() { active() {
return m.route.param('id').split('-')[0] === this.props.discussion.id(); const idParam = m.route.param('id');
return idParam && idParam.split('-')[0] === this.props.discussion.id();
} }
/** /**