Skip to content

Commit

Permalink
Fixed error that prevented adding new array elements after changing f…
Browse files Browse the repository at this point in the history
…rom another type to array.
  • Loading branch information
m-mohr committed Aug 7, 2019
1 parent 71dfdf2 commit efa6092
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ParameterField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ export default {
this.value = this.initArray([this.value]);
},
addField() {
if (!Array.isArray(this.value)) {
this.value = [];
}
this.value.push({
id: this.value.length,
value: null
Expand Down

0 comments on commit efa6092

Please sign in to comment.