Skip to content

Commit

Permalink
fix: 修复隐藏列总计时行总计也被隐藏了
Browse files Browse the repository at this point in the history
  • Loading branch information
wuding.why committed Nov 16, 2023
1 parent 708fde4 commit b2491fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/s2-core/src/facet/layout/layout-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export const layoutHierarchy = (
const hiddenColumnNode =
facetCfg.spreadsheet?.facet?.getHiddenColumnsInfo(currentNode);

if (hiddenColumnNode) {
if (
hiddenColumnNode &&
facetCfg.columns.find((field) => field === currentNode.field)
) {
return false;
}

Expand Down

0 comments on commit b2491fb

Please sign in to comment.