diff --git a/app/assets/javascripts/discourse/widgets/post-links.js.es6 b/app/assets/javascripts/discourse/widgets/post-links.js.es6 index 65f6f47991e..2c2ff4da34a 100644 --- a/app/assets/javascripts/discourse/widgets/post-links.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-links.js.es6 @@ -22,7 +22,7 @@ export default createWidget('post-links', { let titleCount = 0; let hasMore = links.any((l) => { - if (this.state.collapsed && titleCount === 5) { return true; } + if (state.collapsed && titleCount === 5) { return true; } let title = l.title; if (title && !seenTitles[title]) {