Skip to content

Commit

Permalink
Fix possible null error in search
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jan 9, 2024
1 parent e96a82d commit 907969f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Action/SearchAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __invoke(Request $request): Response
'base_template' => $request->isXmlHttpRequest() ?
$this->templateRegistry->getTemplate('ajax') :
$this->templateRegistry->getTemplate('layout'),
'query' => $request->get('q'),
'query' => $request->get('q', ''),
'groups' => $this->pool->getDashboardGroups(),
]));
}
Expand Down

0 comments on commit 907969f

Please sign in to comment.