mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
FIX: Preload topic_list correctly for categories+latest (#18122)
The preload key was changed in e7a84948b9
but this location was missed. This caused an extra AJAX request and left the cached topic list in the PreloadStore, which would then be accidentally used when navigating to the next topic-list route.
This commit is contained in:
parent
33ea8b4756
commit
bad78bfdfb
@ -77,7 +77,7 @@ const DiscoveryCategoriesRoute = DiscourseRoute.extend(OpenComposer, {
|
||||
_findCategoriesAndTopics(filter) {
|
||||
return hash({
|
||||
wrappedCategoriesList: PreloadStore.getAndRemove("categories_list"),
|
||||
topicsList: PreloadStore.getAndRemove(`topic_list_${filter}`),
|
||||
topicsList: PreloadStore.getAndRemove("topic_list"),
|
||||
}).then((response) => {
|
||||
let { wrappedCategoriesList, topicsList } = response;
|
||||
let categoriesList =
|
||||
|
Loading…
Reference in New Issue
Block a user