ywana-core8 0.0.233 → 0.0.237
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 +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +8 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +8 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +6 -2
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -4,7 +4,7 @@ import { Button, DataTable, DropDown, Header, Icon, MenuIcon, MenuItem, Text } f
|
|
4
4
|
import { HTTPClient, Session } from '../http'
|
5
5
|
import { PageContext, SiteContext } from '../site'
|
6
6
|
import { ContentEditor } from './ContentEditor'
|
7
|
-
import { Content } from './ContentType'
|
7
|
+
import { CHECK, Content } from './ContentType'
|
8
8
|
import { ContentViewer } from './ContentViewer'
|
9
9
|
import { CreateContentDialog } from './CreateContentDialog'
|
10
10
|
import "./TablePage.css"
|
@@ -312,10 +312,14 @@ const TableEditor = (props) => {
|
|
312
312
|
|
313
313
|
function renderGroupLabel(groupName) {
|
314
314
|
const grouper = schema[groupBy]
|
315
|
+
|
316
|
+
if (!groupName) return "..."
|
317
|
+
|
315
318
|
if (grouper.options) {
|
316
319
|
const options = CHECK['isFunction'](grouper.options) ? grouper.options() : grouper.options
|
317
320
|
const option = options.find(option => option.value === groupName)
|
318
|
-
|
321
|
+
console.log(groupName, options, option )
|
322
|
+
return option ? option.label : groupName
|
319
323
|
} else {
|
320
324
|
return groupName
|
321
325
|
}
|