From 8fa109638be643e2cbd5879c2f3d1e50998a6568 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 13 May 2015 16:53:49 -0400 Subject: [PATCH] FIX: Double load if left a topic and came back into it. --- app/assets/javascripts/discourse/routes/topic.js.es6 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/routes/topic.js.es6 b/app/assets/javascripts/discourse/routes/topic.js.es6 index 61f660991a7..c86022e63ea 100644 --- a/app/assets/javascripts/discourse/routes/topic.js.es6 +++ b/app/assets/javascripts/discourse/routes/topic.js.es6 @@ -155,10 +155,7 @@ const TopicRoute = Discourse.Route.extend(ShowFooter, { let topic = this.modelFor('topic'); if (topic && (topic.get('id') === parseInt(params.id, 10))) { this.setupParams(topic, queryParams); - // If we have the existing model, refresh it - return topic.get('postStream').refresh().then(function() { - return topic; - }); + return topic; } else { topic = this.store.createRecord('topic', _.omit(params, 'username_filters', 'filter')); return this.setupParams(topic, queryParams);