Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分析数据图表,新建筛选过滤条件,死循环请求静态文件,页面崩溃 #2312

Open
perfumescent opened this issue Apr 1, 2024 · 0 comments
Assignees

Comments

@perfumescent
Copy link

Datart Version

1.0.0-rc.3 Release
Describe the bug
开始分析数据图表时,当新建筛选过滤条件,部分情况下,点击确定提交过滤条件后,会导致死循环请求静态文件,最终导致页面崩溃。
image
在代码src/app/components/ChartGraph/BasicTableChart/BasicTableChart.tsx 901行

        onCell: (record, rowIndex) => {
          const row = chartDataSet[rowIndex];
          const cellValue = row.getCell(c);
          const seriesName = chartDataSet.getFieldOriginKey(c);
          const { rowData } = getExtraSeriesRowData(row);
          return {
            uid: c.uid,
            cellValue,
            dataIndex: row.getFieldKey(c),
            sensitiveFieldName: chartDataSet.getFieldOriginKey(c),
            rowData,
            rowIndex,
            ...this.registerTableCellEvents(
              colName,
              seriesName,
              cellValue,
              rowIndex,
              rowData,
              c.aggregate,
            ),
          };
        },
当意外情况下,rowIndex越界,导致row对象为空。随后会发生死循环渲染。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants