Skip to content

Commit 9f46361

Browse files
author
vikasrohit
committed
AS#113534192025965, Autofill the search term, from query string, in SearchBar
-- Fixing lint errors
1 parent 18bc3a7 commit 9f46361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/SearchBar/SearchBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SearchBar extends Component {
1313
super(props)
1414
const initialTerm = this.getQueryStringValue(props.searchTermKey)
1515
this.state = {
16-
searchState: searchValue.length > 0 ? 'filled' : 'empty',
16+
searchState: initialTerm.length > 0 ? 'filled' : 'empty',
1717
suggestions: [],
1818
searchValue: initialTerm
1919
}

0 commit comments

Comments
 (0)