mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -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) {
|
return new Ember.RSVP.Promise(function(resolve) {
|
||||||
// Try to use the cached version
|
// 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);
|
list.set('loaded', true);
|
||||||
|
|
||||||
if (tracking) {
|
if (tracking) {
|
||||||
|
@ -235,6 +236,7 @@ Discourse.TopicList.reopenClass({
|
||||||
return resolve(Discourse.TopicList.find(filter, _.extend(findParams, params || {})));
|
return resolve(Discourse.TopicList.find(filter, _.extend(findParams, params || {})));
|
||||||
|
|
||||||
}).then(function(list) {
|
}).then(function(list) {
|
||||||
|
list.set('listParams', params);
|
||||||
if (tracking) {
|
if (tracking) {
|
||||||
tracking.sync(list, list.filter);
|
tracking.sync(list, list.filter);
|
||||||
tracking.trackIncoming(list.filter);
|
tracking.trackIncoming(list.filter);
|
||||||
|
|
Loading…
Reference in a new issue