Commit 258a374b authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed problem with persistent query criteria from URL.

parent caeced07
...@@ -49,23 +49,10 @@ entry's archive, and processing logs. ...@@ -49,23 +49,10 @@ entry's archive, and processing logs.
` `
export default function SearchPage() { export default function SearchPage() {
const location = useLocation()
const {user} = useContext(apiContext) const {user} = useContext(apiContext)
let query = {
owner: 'public'
}
if (location && location.search) {
query = {
...query,
...(qs.parse(location.search.substring(1)) || {})
}
}
const withoutLogin = ['all', 'public'] const withoutLogin = ['all', 'public']
return <Search return <Search
initialQuery={query}
initialVisualizationTab="elements" initialVisualizationTab="elements"
availableResultTabs={['entries', 'groups', 'datasets']} availableResultTabs={['entries', 'groups', 'datasets']}
initialOwner="public" initialOwner="public"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment