@shotleybuilder/svelte-gridlite-kit 0.4.2 → 0.4.3
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/GridLite.svelte +4 -4
- package/package.json +1 -1
package/dist/GridLite.svelte
CHANGED
|
@@ -219,8 +219,8 @@ async function rebuildGroupedQuery() {
|
|
|
219
219
|
try {
|
|
220
220
|
const usePagination = features.pagination !== false;
|
|
221
221
|
const topGroupConfig = cleanAgg(validGrouping[0]);
|
|
222
|
-
const
|
|
223
|
-
const groupSorting = sorting.filter((s) =>
|
|
222
|
+
const topColumnNames = [topGroupConfig.column];
|
|
223
|
+
const groupSorting = sorting.filter((s) => topColumnNames.includes(s.column));
|
|
224
224
|
const summaryQuery = buildGroupSummaryQuery({
|
|
225
225
|
...querySource,
|
|
226
226
|
grouping: [topGroupConfig],
|
|
@@ -296,8 +296,8 @@ async function fetchGroupChildren(group) {
|
|
|
296
296
|
}));
|
|
297
297
|
if (nextDepth < validGrouping.length) {
|
|
298
298
|
const subGroupConfig = cleanAgg(validGrouping[nextDepth]);
|
|
299
|
-
const
|
|
300
|
-
const groupSorting = sorting.filter((s) =>
|
|
299
|
+
const subColumnNames = validGrouping.slice(0, nextDepth + 1).map((g) => g.column);
|
|
300
|
+
const groupSorting = sorting.filter((s) => subColumnNames.includes(s.column));
|
|
301
301
|
const summaryQuery = buildGroupSummaryQuery({
|
|
302
302
|
...querySource,
|
|
303
303
|
grouping: [subGroupConfig],
|