ywana-core8 0.0.419 → 0.0.420

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.419",
3
+ "version": "0.0.420",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -236,7 +236,6 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
236
236
  const { id, format, label, options, editable = true, predictive = false, multivalue = false, Editor } = field
237
237
 
238
238
  function change(id, value) {
239
- console.log(id,value)
240
239
  if (onChange) onChange(id, value)
241
240
  }
242
241
 
@@ -21,7 +21,6 @@ const schema = {
21
21
 
22
22
  const value = {
23
23
  name: "John Smith",
24
- field3 : ["1","2","4"]
25
24
  }
26
25
 
27
26
  const ContentEditorTest = (prop) => {
@@ -24,7 +24,7 @@ export const TokenField = ({ id, label, tokens = [], readOnly, options, onChange
24
24
  }
25
25
 
26
26
  function changeDropDown(fid, value) {
27
- const next = tokens.concat(value)
27
+ const next = Array.isArray(tokens) ? tokens.concat(value) : [value]
28
28
  if (onChange) onChange(id, next)
29
29
  setValue('')
30
30
  }