From 6dcde9ccc386cc91bdd81634c4334d40d7899026 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 29 Aug 2014 15:51:28 -0400 Subject: [PATCH] FIX: Navigating to None was not working --- app/assets/javascripts/discourse/models/topic_list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/topic_list.js b/app/assets/javascripts/discourse/models/topic_list.js index 0b253e2b213..c28635170a1 100644 --- a/app/assets/javascripts/discourse/models/topic_list.js +++ b/app/assets/javascripts/discourse/models/topic_list.js @@ -202,7 +202,8 @@ Discourse.TopicList.reopenClass({ return new Ember.RSVP.Promise(function(resolve) { // Try to use the cached version - if (list && (list.get('filter') === filter)) { + if (list && (list.get('filter') === filter) && + _.isEqual(list.get('listParams'), params)) { list.set('loaded', true); if (tracking) { @@ -235,6 +236,7 @@ Discourse.TopicList.reopenClass({ return resolve(Discourse.TopicList.find(filter, _.extend(findParams, params || {}))); }).then(function(list) { + list.set('listParams', params); if (tracking) { tracking.sync(list, list.filter); tracking.trackIncoming(list.filter);