ywana-core8 0.0.237 → 0.0.238
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/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +2 -3
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -313,7 +313,7 @@ const TableEditor = (props) => {
|
|
313
313
|
function renderGroupLabel(groupName) {
|
314
314
|
const grouper = schema[groupBy]
|
315
315
|
|
316
|
-
if (!groupName) return "
|
316
|
+
if (!groupName || !grouper) return ""
|
317
317
|
|
318
318
|
if (grouper.options) {
|
319
319
|
const options = CHECK['isFunction'](grouper.options) ? grouper.options() : grouper.options
|
@@ -375,8 +375,7 @@ const TableEditor = (props) => {
|
|
375
375
|
|
376
376
|
return (
|
377
377
|
<Fragment key={groupName}>
|
378
|
-
<Header title={groupName} >
|
379
|
-
{renderGroupLabel(groupName)}
|
378
|
+
<Header title={renderGroupLabel(groupName)} >
|
380
379
|
<span className="size">{groupSize}</span>
|
381
380
|
</Header>
|
382
381
|
<DataTable {...table} onRowSelection={select} editable={editable} onCheckAll={check} />
|