mirror of
https://github.com/wekan/wekan.git
synced 2026-02-04 15:41:52 +01:00
Merge pull request #3687 from jrsupplee/issue-1667
Fix bug in My Cards and Global Search
This commit is contained in:
commit
04a8d85836
4 changed files with 24 additions and 20 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue