ywana-core8 0.0.981 → 0.0.982

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.981",
3
+ "version": "0.0.982",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -24,7 +24,8 @@ export const TokenField = ({ id, label, tokens = [], readOnly, options, predicti
24
24
 
25
25
  function changeDropDown(fid, value) {
26
26
 
27
- const valueIsNotEmpty = value && value.length > 0
27
+ const isNumericValue = !isNaN(value)
28
+ const valueIsNotEmpty = (value && value.length > 0) || isNumericValue
28
29
 
29
30
  if (valueIsNotEmpty) {
30
31
  const next = Array.isArray(tokens) ? tokens.concat(value) : [value]