@5minds/node-red-dashboard-2-processcube-dynamic-form 1.0.6 → 1.0.7

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": "@5minds/node-red-dashboard-2-processcube-dynamic-form",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "The ui component for the ProcessCube dynamic-form",
5
5
  "keywords": [
6
6
  "processcube",
@@ -82,12 +82,12 @@ export default {
82
82
  this.$socket.on('msg-input:' + this.id, (msg) => {
83
83
  // store the latest message in our client-side vuex store when we receive a new message
84
84
 
85
- console.info(msg)
86
-
87
85
  if (msg.payload.formFields) {
88
86
  const formData = msg.payload.formFields.reduce((acc, field) => {
89
87
  console.info('field:', field)
90
88
  console.info('field.id:', field.id)
89
+ console.info('field.value:', field.value)
90
+ console.info('field.defaultValue:', field.defaultValue)
91
91
 
92
92
  acc[field.id] = field.value || field.defaultValue || ''
93
93
  return acc
@@ -126,8 +126,7 @@ export default {
126
126
  const fieldMap = aFields.map(field => ({
127
127
  ...field,
128
128
  component: mapFieldTypes(field.type),
129
- items: mapItems(field.type, field),
130
- value: field.defaultValue || ''
129
+ items: mapItems(field.type, field)
131
130
  }))
132
131
 
133
132
  return fieldMap