diff --git a/embark-ui/src/services/api.js b/embark-ui/src/services/api.js index 2431811b..50fab190 100644 --- a/embark-ui/src/services/api.js +++ b/embark-ui/src/services/api.js @@ -28,7 +28,8 @@ function request(type, path, params = {}) { 'X-Embark-Request-Hash': requestHash, 'X-Embark-Cnonce': cnonce }, - data: params + ...(type === 'post' ? { data: params } : {}), + ...(type === 'get' ? { params } : {}) } return axios(req)