We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12ebcf5 commit b3be446Copy full SHA for b3be446
1 file changed
src/_App/BotAnalysis/Networks/TestGraph.js
@@ -49,10 +49,9 @@ export default class NetworkGraph extends PureComponent {
49
componentDidMount(){
50
console.log("COMPONENT DID MOUNT")
51
window.addEventListener("resize", this.handleResize)
52
- //const width = this.containerRef.current.clientWidth
53
- this.setState({parsedResponse:"abc123",
54
- //width: width
55
- })
+ //const width = this.containerRef.current.clientWidth // containerRef is null here
+ const width = window.innerWidth * 0.74
+ this.setState({parsedResponse:"abc123", width: width})
56
}
57
58
componentWillUnmount() {
0 commit comments