ywana-core8 0.0.618 → 0.0.619
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 +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +9 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +7 -4
package/dist/index.umd.js
CHANGED
@@ -5941,7 +5941,6 @@
|
|
5941
5941
|
}
|
5942
5942
|
|
5943
5943
|
function group(items, by) {
|
5944
|
-
console.log(schema, items, by);
|
5945
5944
|
var options = schema[by] ? schema[by].options : null;
|
5946
5945
|
return items.reduce(function (nodes, field) {
|
5947
5946
|
var node = nodes.find(function (n) {
|
@@ -5949,9 +5948,15 @@
|
|
5949
5948
|
});
|
5950
5949
|
|
5951
5950
|
if (!node) {
|
5952
|
-
var name =
|
5953
|
-
|
5954
|
-
|
5951
|
+
var name = field[by];
|
5952
|
+
|
5953
|
+
if (options) {
|
5954
|
+
var opt = options.find(function (option) {
|
5955
|
+
return option.value === field[by];
|
5956
|
+
});
|
5957
|
+
if (opt) name = opt.label;
|
5958
|
+
}
|
5959
|
+
|
5955
5960
|
node = {
|
5956
5961
|
name: name,
|
5957
5962
|
items: [],
|