Skip to content

Commit 52512da

Browse files
author
Manovikas Ramaswamy
committed
Fixed explore on blank text.
1 parent 100bb46 commit 52512da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/components/explore-module/explore.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import RightPanel from "../right-panel/rightPanel";
77
class Explore extends Component {
88
constructor(props) {
99
super(props);
10+
this.state = {};
1011

1112
this.onChange = this.onChange.bind(this);
1213
this.onSubmit = this.onSubmit.bind(this);
@@ -38,7 +39,7 @@ class Explore extends Component {
3839

3940
onSubmit = async (e) => {
4041
e.preventDefault();
41-
let searchInput = this.state.searchInput;
42+
let searchInput = this.state.searchInput || "";
4243
localStorage.setItem("search_input", searchInput);
4344
this.setState({
4445
formSubmitted: true

0 commit comments

Comments
 (0)