From 89a96b9e94cb499fd7775b7085b5754273b6b032 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 18 Nov 2013 17:06:52 -0500 Subject: [PATCH] FIX: Topic map expansion broken without links. --- .../javascripts/discourse/components/topic_map_component.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/components/topic_map_component.js b/app/assets/javascripts/discourse/components/topic_map_component.js index 7d9d3c4366b..394f5c61789 100644 --- a/app/assets/javascripts/discourse/components/topic_map_component.js +++ b/app/assets/javascripts/discourse/components/topic_map_component.js @@ -33,11 +33,12 @@ Discourse.DiscourseTopicMapComponent = Ember.Component.extend({ }.property('allLinksShown', 'topic.details.links'), infoLinks: function() { - if (Em.isNone('details.links')) return []; - var allLinks = this.get('details.links'); + if (Em.isNone(allLinks)) return []; + if (this.get('allLinksShown')) return allLinks; return allLinks.slice(0, LINKS_SHOWN); + }.property('details.links', 'allLinksShown'), actions: {