Skip to content

Commit efa6092

Browse files
committed
Fixed error that prevented adding new array elements after changing from another type to array.
1 parent 71dfdf2 commit efa6092

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/ParameterField.vue

+3
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ export default {
330330
this.value = this.initArray([this.value]);
331331
},
332332
addField() {
333+
if (!Array.isArray(this.value)) {
334+
this.value = [];
335+
}
333336
this.value.push({
334337
id: this.value.length,
335338
value: null

0 commit comments

Comments
 (0)