We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 100bb46 commit 52512daCopy full SHA for 52512da
frontend/src/components/explore-module/explore.jsx
@@ -7,6 +7,7 @@ import RightPanel from "../right-panel/rightPanel";
7
class Explore extends Component {
8
constructor(props) {
9
super(props);
10
+ this.state = {};
11
12
this.onChange = this.onChange.bind(this);
13
this.onSubmit = this.onSubmit.bind(this);
@@ -38,7 +39,7 @@ class Explore extends Component {
38
39
40
onSubmit = async (e) => {
41
e.preventDefault();
- let searchInput = this.state.searchInput;
42
+ let searchInput = this.state.searchInput || "";
43
localStorage.setItem("search_input", searchInput);
44
this.setState({
45
formSubmitted: true
0 commit comments