Commit da87c07e authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed clear button visible after clear.

parent 47168f13
......@@ -288,7 +288,7 @@ class SearchBar extends React.Component {
}
}
const showClearButton = query && Object.keys(query).length > 1
const showClearButton = query && Object.keys(query).filter(key => query[key] !== undefined).length > 1
return (
<div className={classes.root}>
......
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