Fixed stage settings payload structure

This commit is contained in:
Joel Collins 2019-06-06 11:28:22 +01:00
parent 104d7c0345
commit f17d1e71f9

View file

@ -63,7 +63,9 @@ export default {
},
applyConfigRequest: function() {
var payload = {}
var payload = {
stage_settings: {}
}
if (this.microscopeName != this.$store.state.apiConfig.name) {
payload.name = this.microscopeName
@ -73,6 +75,8 @@ export default {
payload.stage_settings.backlash = this.stageBacklash
}
console.log(payload)
// Send request to update config
axios.post(this.configApiUri, payload)
.then(response => {