mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Fix bug when no search param specified
This commit is contained in:
parent
7e8475e64d
commit
e70a1f0a60
1 changed files with 6 additions and 4 deletions
|
@ -160,10 +160,12 @@ FlowRouter.route('/global-search', {
|
|||
Utils.manageMatomo();
|
||||
DocHead.setTitle(TAPi18n.__('globalSearch-title'));
|
||||
|
||||
Session.set(
|
||||
'globalQuery',
|
||||
decodeURIComponent(FlowRouter.getQueryParam('q')),
|
||||
);
|
||||
if (FlowRouter.getQueryParam('q')) {
|
||||
Session.set(
|
||||
'globalQuery',
|
||||
decodeURIComponent(FlowRouter.getQueryParam('q')),
|
||||
);
|
||||
}
|
||||
BlazeLayout.render('defaultLayout', {
|
||||
headerBar: 'globalSearchHeaderBar',
|
||||
content: 'globalSearch',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue