mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 01:26:18 -05:00
FIX: remove from preload store so it is not cached forever
This commit is contained in:
parent
55fad7b339
commit
282a4e1efb
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ const DiscoveryCategoriesRoute = Discourse.Route.extend(OpenComposer, {
|
|||
},
|
||||
|
||||
_loadCategoriesAndLatestTopics() {
|
||||
const wrappedCategoriesList = PreloadStore.get("categories_list");
|
||||
const topicListLatest = PreloadStore.get("topic_list_latest");
|
||||
const wrappedCategoriesList = PreloadStore.getAndRemove("categories_list");
|
||||
const topicListLatest = PreloadStore.getAndRemove("topic_list_latest");
|
||||
const categoriesList = wrappedCategoriesList && wrappedCategoriesList.category_list;
|
||||
if (categoriesList && topicListLatest) {
|
||||
return new Ember.RSVP.Promise(resolve => {
|
||||
|
|
Loading…
Reference in a new issue