Skip to content

Commit

Permalink
Only autofill time on first maxDepth input
Browse files Browse the repository at this point in the history
  • Loading branch information
mijdavis2 committed May 24, 2018
1 parent aece00f commit f4fe550
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/renderer/components/Report/StreamflowCalculator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@
})
},
updateMaxDepth (station) {
this.autofillClock(station)
let t = document.getElementById(`Clock-${station}`).value
if (!t || t === '') {
this.autofillClock(station)
}
let val = document.getElementById(`MaxDepth-${station}`).value
if (!isNaN(val) || val === '') {
this.$store.commit('updateMaxDepth', {
Expand Down

0 comments on commit f4fe550

Please sign in to comment.