ywana-core8 0.0.520 → 0.0.521

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.520",
3
+ "version": "0.0.521",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -446,6 +446,14 @@ export const TableEditor = (props) => {
446
446
 
447
447
  function renderGroups() {
448
448
  const items = filter ? filter(all) : all
449
+
450
+ if (items.length === 0) return (
451
+ <div className='empty-message'>
452
+ <Icon icon="search_off" />
453
+ <Text>No Result Found</Text>
454
+ </div>
455
+ )
456
+
449
457
  const groups = items.reduce((groups, item) => {
450
458
  const groupName = item[groupBy]
451
459
  const group = groups[groupName]
@@ -454,13 +462,6 @@ export const TableEditor = (props) => {
454
462
  return groups
455
463
  }, {})
456
464
 
457
- if (groups.length === 0) return (
458
- <div className='empty-message'>
459
- <Icon icon="search_off" />
460
- <Text>No Result Found</Text>
461
- </div>
462
- )
463
-
464
465
  return Object.keys(groups).map(groupName => {
465
466
  const table = {
466
467
  columns: Object.values(schema)