Fix Browse page not loading
This commit is contained in:
		| @@ -21,16 +21,11 @@ export default class BrowseComponent extends Component { | ||||
|   } | ||||
|  | ||||
|   handleMessage = (event) => { | ||||
|     //console.log("Got message!"); | ||||
|     try { | ||||
|       const message = JSON.parse(event.data); | ||||
|       const cableList = this.browseParse(message); | ||||
|       if (!this.state.isLoading) { | ||||
|         this.setState({ cableList }); | ||||
|       } else { | ||||
|         setTimeout(() => { | ||||
|           this.setState({ cableList }); | ||||
|         }, 500 - new Date()); | ||||
|       } | ||||
|       this.setState({ cableList }); | ||||
|     } catch (error) { | ||||
|       console.error("Error parsing message from server:", error); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user