mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
FIX: Navigating to None was not working
This commit is contained in:
parent
cd74829d55
commit
6dcde9ccc3
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue