From f85af06297df7f90c46c284833f6a9f009989005 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Mon, 10 Jun 2019 14:34:10 -0400 Subject: [PATCH] Use number instead of array to add new CLIN fields --- js/components/forms/to_form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/components/forms/to_form.js b/js/components/forms/to_form.js index 0f4f6f45..5255fbb9 100644 --- a/js/components/forms/to_form.js +++ b/js/components/forms/to_form.js @@ -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 }, },