We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3773678 commit 1e6dfe2Copy full SHA for 1e6dfe2
1 file changed
packages/vtable/src/dataset/dataset.ts
@@ -1146,13 +1146,13 @@ export class Dataset {
1146
): IAggregator {
1147
const indicatorIndex = this.indicatorKeys.indexOf(indicator);
1148
//#region 获取行和列的维度key,考虑到tree模式被折叠的情况 rowKey colKey会小于rows和columns的长度
1149
- let rowDimensionKey;
+ let rowDimensionKey: string | undefined;
1150
if (indicatorPosition?.position === 'row') {
1151
rowDimensionKey = rowKey.length >= 2 ? this.rows[rowKey.length - 2] : undefined;
1152
} else {
1153
rowDimensionKey = this.rows[rowKey.length - 1];
1154
}
1155
- let colDimensionKey;
+ let colDimensionKey: any;
1156
if (indicatorPosition?.position === 'col') {
1157
colDimensionKey = colKey.length >= 2 ? this.columns[colKey.length - 2] : undefined;
1158
0 commit comments