ywana-core8 0.0.671 → 0.0.673

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.671",
3
+ "version": "0.0.673",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -512,7 +512,10 @@ const TableEditor = (props) => {
512
512
  )
513
513
 
514
514
  const groups = items.reduce((groups, item) => {
515
- const groupName = item[groupBy]
515
+ let groupName = item[groupBy]
516
+ if (!groupName) groupName=`SIN ${groupBy}`.toUpperCase()
517
+ if (groupName === false) groupName = `NO ${groupBy}`.toUpperCase()
518
+ if (groupName === true) groupName = `SI ${groupBy}`.toUpperCase()
516
519
  const group = groups[groupName]
517
520
  if (!group) groups[groupName] = []
518
521
  groups[groupName].push(item)
@@ -432,7 +432,10 @@ export const TableEditor = (props) => {
432
432
  )
433
433
 
434
434
  const groups = items.reduce((groups, item) => {
435
- const groupName = item[groupBy]
435
+ let groupName = item[groupBy]
436
+ if (!groupName) groupName=`SIN ${groupBy}`.toUpperCase()
437
+ if (groupName === false) groupName = `NO ${groupBy}`.toUpperCase()
438
+ if (groupName === true) groupName = `SI ${groupBy}`.toUpperCase()
436
439
  const group = groups[groupName]
437
440
  if (!group) groups[groupName] = []
438
441
  groups[groupName].push(item)