diff --git a/src/components/BrowseComponent.js b/src/components/BrowseComponent.js index 4594342..7b7893d 100644 --- a/src/components/BrowseComponent.js +++ b/src/components/BrowseComponent.js @@ -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); }