Skip to content

Commit

Permalink
fix: bug precontribution 33
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Nov 17, 2016
1 parent 5ff82a3 commit 21b9bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/public/scripts/modules/FormCreate.js
Expand Up @@ -132,7 +132,7 @@ export default class FormCreate {
if (value.indexOf('{') > -1) {
try {
var jsonValue = JSON.parse(value)
values[id].push(jsonValue)
values[id] = [jsonValue]

if (required && values[id].length == 0) {
isValid = false
Expand Down

0 comments on commit 21b9bbf

Please sign in to comment.