From c27d5dc2bd8ef6c6ef364e8d221db4eded72651b Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 11 Jun 2013 18:10:28 +1000 Subject: [PATCH] regression, empty suggested list after posting a topic --- app/assets/javascripts/discourse/views/topic_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/topic_view.js b/app/assets/javascripts/discourse/views/topic_view.js index f9f530b628b..3d3ea0faa55 100644 --- a/app/assets/javascripts/discourse/views/topic_view.js +++ b/app/assets/javascripts/discourse/views/topic_view.js @@ -144,7 +144,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, { if(suggested) { var existing = _(suggested).map(function(topic){ - topic.get("id"); + return topic.get("id"); }); var lookup = _.chain(incoming) @@ -156,6 +156,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, { .first(5) .value(); + this.debounceLoadSuggested(lookup); } }.observes('topicTrackingState.incomingCount'),