@megha-ui/react 1.2.261 → 1.2.263
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.
|
@@ -695,6 +695,7 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
695
695
|
const g = map.get(composite);
|
|
696
696
|
g.values.push(item);
|
|
697
697
|
});
|
|
698
|
+
console.log({ map });
|
|
698
699
|
const groups = Array.from(map.values());
|
|
699
700
|
groups.forEach((g) => {
|
|
700
701
|
g.count = g.values.length;
|
|
@@ -715,6 +716,7 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
715
716
|
.map((k) => k.trim())
|
|
716
717
|
.filter((k) => k));
|
|
717
718
|
const groupedArray = sets.length ? groupBySets(sortedData, sets) : [];
|
|
719
|
+
console.log(groupedArray);
|
|
718
720
|
const flatGroupedArray = flattenGroupedData(groupedArray, 1);
|
|
719
721
|
setGroupedData(flatGroupedArray);
|
|
720
722
|
const grouped = flatGroupedArray
|
package/package.json
CHANGED