Use number instead of array to add new CLIN fields

This commit is contained in:
leigh-mil 2019-06-10 14:34:10 -04:00
parent 00f323f9f5
commit f85af06297

View File

@ -23,7 +23,7 @@ export default {
},
data: function() {
const clins = this.initialClinCount == 0 ? [''] : []
const clins = this.initialClinCount == 0 ? 1 : 0
const clinIndex = this.initialClinCount == 0 ? 0 : this.initialClinCount - 1
return {
@ -34,7 +34,7 @@ export default {
methods: {
addClin: function(event) {
this.clins.push('')
this.clins = this.clins + 1
this.clinIndex = this.clinIndex + 1
},
},