ywana-core8 0.0.27 → 0.0.32

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.27",
3
+ "version": "0.0.32",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -375,15 +375,19 @@ const TableAPI = (url) => {
375
375
  const filterQuery = Object.keys(filters).reduce((query, key) => {
376
376
 
377
377
  const value = filters[key]
378
+ console.log(value)
378
379
 
379
380
  if (typeof (value) === 'boolean') {
380
381
  return query.concat(`${key}=${value}&`)
381
382
 
382
383
  } else if (Array.isArray(value)) {
383
- const param = value.length === 0 ? '' : value.reduce((param,item) => { param.concat(`${key}=${item}&`) }, "")
384
+ const param = value.length === 0 ? 'xxx=1&' : value.reduce((param,item) => {
385
+ param = param.concat(`${key}=${item}&`)
386
+ console.log(item, param)
387
+ return param
388
+ }, "")
384
389
  console.log(param)
385
390
  return query.concat(param)
386
-
387
391
  } else {
388
392
  return query.concat(`${key}=%${filters[key]}%&`)
389
393
  }