mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 22:36:45 +08:00
FIX: Full page search result infinite scroll with added results (#30771)
This commit is contained in:
parent
1b19bf690a
commit
c25e53db7e
@ -435,8 +435,11 @@ export default class FullPageSearchController extends Controller {
|
||||
|
||||
if (args.page > 1) {
|
||||
if (model) {
|
||||
this.model.posts.pushObjects(model.posts);
|
||||
this.model.topics.pushObjects(model.topics);
|
||||
this.model.set("posts", this.model.posts.concat(model.posts));
|
||||
this.model.set(
|
||||
"topics",
|
||||
this.model.topics.concat(model.topics)
|
||||
);
|
||||
this.model.set(
|
||||
"grouped_search_result",
|
||||
results.grouped_search_result
|
||||
|
Loading…
x
Reference in New Issue
Block a user