diff --git a/src/plotting/AxidrawAPI.js b/src/plotting/AxidrawAPI.js index e5c0acd..aba9ff3 100644 --- a/src/plotting/AxidrawAPI.js +++ b/src/plotting/AxidrawAPI.js @@ -78,8 +78,8 @@ class AxidrawAPI { }, body: state }); - const json = result.json(); - return Promise.resolve(json); + const json = await result.json(); + return json; } async resetMotor() {