@homebound/beam 2.147.1 → 2.148.0
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.
|
@@ -814,14 +814,13 @@ function filterRows(api, columns, rows, filter) {
|
|
|
814
814
|
const matches = row.kind === "header" ||
|
|
815
815
|
row.kind === "totals" ||
|
|
816
816
|
filters.length === 0 ||
|
|
817
|
-
!!row.pin ||
|
|
818
817
|
filters.every((f) => columns.map((c) => applyRowFn(c, row, api, 0)).some((maybeContent) => matchesFilter(maybeContent, f)));
|
|
819
818
|
if (matches) {
|
|
820
819
|
return acc.concat([[row, (_b = (_a = row.children) === null || _a === void 0 ? void 0 : _a.reduce(acceptAll, [])) !== null && _b !== void 0 ? _b : []]]);
|
|
821
820
|
}
|
|
822
821
|
else {
|
|
823
822
|
const matchedChildren = (_d = (_c = row.children) === null || _c === void 0 ? void 0 : _c.reduce(filterFn, [])) !== null && _d !== void 0 ? _d : [];
|
|
824
|
-
if (matchedChildren.length > 0) {
|
|
823
|
+
if (matchedChildren.length > 0 || row.pin) {
|
|
825
824
|
return acc.concat([[row, matchedChildren]]);
|
|
826
825
|
}
|
|
827
826
|
else {
|