Skip to content

Commit

Permalink
Update Body
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 10, 2024
1 parent f390cd7 commit d2f7a9a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api/web/src/components/ConnectionSinkEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ export default {
url: '',
username: '',
password: '',
points: ''
points: '',
lines: '',
polys: ''
},
logging: false,
enabled: true,
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit d2f7a9a

Please sign in to comment.