Don't wait for loading to finish before resetting category

This commit is contained in:
Robin Ward 2013-10-30 11:28:51 -04:00
parent 689c4cd947
commit 2305cf94ea

View File

@ -37,8 +37,8 @@ Discourse.FilteredListRoute = Discourse.Route.extend({
listContent.set('loaded', false);
}
listController.set('category', null);
listController.load(this.filter).then(function(topicList) {
listController.set('category', null);
listController.set('canCreateTopic', topicList.get('can_create_topic'));
listTopicsController.set('model', topicList);