diff --git a/app/assets/javascripts/discourse/components/header-extra-info.js.es6 b/app/assets/javascripts/discourse/components/header-extra-info.js.es6 index a323d50df56..8948e24c95a 100644 --- a/app/assets/javascripts/discourse/components/header-extra-info.js.es6 +++ b/app/assets/javascripts/discourse/components/header-extra-info.js.es6 @@ -7,8 +7,8 @@ const TopicCategoryComponent = Ember.Component.extend({ }.property('topic.is_warning', 'topic.isPrivateMessage'), actions: { - jumpToTopPost: function () { - var topic = this.get('topic'); + jumpToTopPost() { + const topic = this.get('topic'); if (topic) { Discourse.URL.routeTo(topic.get('firstPostUrl')); }