Merge pull request #3687 from jrsupplee/issue-1667

Fix bug in My Cards and Global Search
This commit is contained in:
Lauri Ojansivu 2021-03-31 14:21:48 +03:00 committed by GitHub
commit 04a8d85836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 20 deletions

View file

@ -96,7 +96,7 @@ class GlobalSearchComponent extends CardSearchPagedComponent {
// eslint-disable-next-line no-console
// console.log('params:', query.getParams());
this.queryParams = query.getParams();
this.queryParams = query.getQueryParams().getParams();
if (query.hasErrors()) {
this.searching.set(false);
@ -106,7 +106,7 @@ class GlobalSearchComponent extends CardSearchPagedComponent {
return;
}
this.runGlobalSearch(query.getParams());
this.runGlobalSearch(query.getQueryParams());
}
searchInstructions() {

View file

@ -99,13 +99,14 @@ export class CardSearchPagedComponent extends BlazeComponent {
}
}
runGlobalSearch(params) {
runGlobalSearch(queryParams) {
this.searching.set(true);
this.stopSubscription();
this.subscriptionHandle = Meteor.subscribe(
'globalSearch',
this.sessionId,
params,
queryParams.params,
queryParams.text,
this.subscriptionCallbacks,
);
}