mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 04:13:44 +08:00
Don't wait for loading to finish before resetting category
This commit is contained in:
parent
689c4cd947
commit
2305cf94ea
|
@ -37,8 +37,8 @@ Discourse.FilteredListRoute = Discourse.Route.extend({
|
||||||
listContent.set('loaded', false);
|
listContent.set('loaded', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
listController.load(this.filter).then(function(topicList) {
|
|
||||||
listController.set('category', null);
|
listController.set('category', null);
|
||||||
|
listController.load(this.filter).then(function(topicList) {
|
||||||
listController.set('canCreateTopic', topicList.get('can_create_topic'));
|
listController.set('canCreateTopic', topicList.get('can_create_topic'));
|
||||||
listTopicsController.set('model', topicList);
|
listTopicsController.set('model', topicList);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user