Commit c246e9ac authored by Raghav Khanna's avatar Raghav Khanna

Use async and await to wait for network request

parent 76b2d119
......@@ -71,6 +71,7 @@ class App extends React.Component {
processWaccCode = (code) => {
let rsp = sendWaccCode(code)
console.log(rsp)
let graph = astMetaToGraphData(rsp.astMeta)
this.setState({
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment