Skip to content

Commit 784242a

Browse files
committed
Cleanup
1 parent b32f76a commit 784242a

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

plugins/pivot/src/js/src/IrisGridPivotRenderer.ts

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,35 +36,13 @@ function getColumnHeaderCoordinates(
3636
): BoxCoordinates {
3737
const { metrics, theme } = state;
3838
const { childIndexes, depth } = group;
39-
if (
40-
(childIndexes.length > 0 && typeof childIndexes[0] !== 'number') ||
41-
(childIndexes.length > 1 &&
42-
typeof childIndexes[childIndexes.length - 1] !== 'number')
43-
) {
44-
console.log('Unexpected childIndexes types', childIndexes);
45-
}
46-
// TODO: fix childIndexes typing
47-
const firstColumn = childIndexes[0]; // parseInt(String(childIndexes[0]) ?? '', 10);
39+
const firstColumn = childIndexes[0];
4840
const lastColumn = childIndexes[childIndexes.length - 1];
49-
// parseInt(
50-
// String(childIndexes[childIndexes.length - 1]) ?? '',
51-
// 10
52-
// );
5341
if (firstColumn == null || lastColumn == null) {
5442
throw new Error('Group has no child columns');
5543
}
56-
const { allColumnXs, allColumnWidths, gridX, gridY, maxX, lastLeft } =
57-
metrics;
44+
const { allColumnXs, allColumnWidths, gridX, gridY, maxX } = metrics;
5845
const { filterBarHeight, columnHeaderHeight } = theme;
59-
console.log('getColumnHeaderCoordinates', {
60-
allColumnXs,
61-
allColumnWidths,
62-
gridX,
63-
maxX,
64-
firstColumn,
65-
lastColumn,
66-
lastLeft,
67-
});
6846
let firstColumnX = allColumnXs.get(firstColumn);
6947
let lastColumnX = allColumnXs.get(lastColumn);
7048
let lastColumnWidth = allColumnWidths.get(lastColumn);

0 commit comments

Comments
 (0)