diff --git a/framework/core/js/forum/src/components/DiscussionListItem.js b/framework/core/js/forum/src/components/DiscussionListItem.js index f1b8af6f5..045357b65 100644 --- a/framework/core/js/forum/src/components/DiscussionListItem.js +++ b/framework/core/js/forum/src/components/DiscussionListItem.js @@ -130,7 +130,9 @@ export default class DiscussionListItem extends Component { * @return {Boolean} */ 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(); } /**