ywana-core8 0.0.857 → 0.0.858

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.857",
3
+ "version": "0.0.858",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -19,8 +19,9 @@ export const DynamicForm = (props) => {
19
19
  <div className="dynamic-form">
20
20
  {fields.map(field => {
21
21
  const { id, label, type } = field
22
+ const value = values[id] || field.default
22
23
  return (
23
- <DynamicFormField key={id} field={field} value={values[id]} onChange={change} />
24
+ <DynamicFormField key={id} field={field} value={value} onChange={change} />
24
25
  )
25
26
  })}
26
27
  </div>