diff --git a/api/web/src/components/ConnectionSinkEdit.vue b/api/web/src/components/ConnectionSinkEdit.vue index 8e6724b30..950847277 100644 --- a/api/web/src/components/ConnectionSinkEdit.vue +++ b/api/web/src/components/ConnectionSinkEdit.vue @@ -275,7 +275,9 @@ export default { url: '', username: '', password: '', - points: '' + points: '', + lines: '', + polys: '' }, logging: false, enabled: true, @@ -304,6 +306,10 @@ export default { if (this.errors[e]) return; } + if (!this.sink.body.points) delete this.sink.body.points; + if (!this.sink.body.lines) delete this.sink.body.lines; + if (!this.sink.body.polys) delete this.sink.body.polys; + if (this.$route.params.sinkid) { await std(`/api/connection/${this.$route.params.connectionid}/sink/${this.$route.params.sinkid}`, { method: 'PATCH',