await for setState

This commit is contained in:
2019-08-05 11:47:58 +03:00
parent 33bfe9d0d3
commit 1be3dce80d

View File

@@ -71,7 +71,7 @@ export class GcodeSenderComponent extends React.PureComponent<
}
}
this.setState({ gcodeLinesQueue, gcodeLinesSent });
await this.setState({ gcodeLinesQueue, gcodeLinesSent });
}
render() {