mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
FIX: Search had wrong preload store key
This commit is contained in:
parent
46b61627cd
commit
32a1610b5d
@ -74,9 +74,10 @@ function findTopicList(store, filter, filterParams, extras) {
|
||||
export default function(filter, extras) {
|
||||
extras = extras || {};
|
||||
return Discourse.Route.extend({
|
||||
queryParams: queryParams,
|
||||
queryParams,
|
||||
|
||||
beforeModel() {
|
||||
console.log('before model', filter);
|
||||
this.controllerFor('navigation/default').set('filterMode', filter);
|
||||
},
|
||||
|
||||
|
@ -74,7 +74,6 @@ class TopicQuery
|
||||
def list_search
|
||||
|
||||
results = nil
|
||||
|
||||
if @options[:q].present?
|
||||
search = Search.execute(@options[:q],
|
||||
type_filter: 'topic',
|
||||
@ -106,8 +105,7 @@ class TopicQuery
|
||||
.references('tu')
|
||||
end
|
||||
|
||||
list = create_list(:latest, {unordered: true}, results)
|
||||
|
||||
list = create_list(:search, {unordered: true}, results)
|
||||
|
||||
list.topics.each do |topic|
|
||||
if posts = posts_map[topic.id]
|
||||
|
Loading…
Reference in New Issue
Block a user