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

fix(charts): fields undefined bug #1980

Merged
merged 1 commit into from
Jun 5, 2023
Merged

Conversation

Xilesun
Copy link
Contributor

@Xilesun Xilesun commented Jun 5, 2023

Description (Bug 描述)

Steps to reproduce (复现步骤)

创建图表数据源>正常添加图表>删除数据源>图表右上角编辑图表

Expected behavior (预期行为)

页面正常

Actual behavior (实际行为)

页面报错

image

Reason (原因)

设计器弹窗前会从数据源中获取当前数据源中存在的字段,删除数据源后 fields变量值可能为 undefined

Solution (解决方案)

fieldsundefined时,使用空数组[]赋值。

页面正常显示

image

@hongboji hongboji added the solved label Jun 5, 2023
@Xilesun Xilesun merged commit ecb2af8 into main Jun 5, 2023
4 checks passed
@Xilesun Xilesun deleted the fix/charts-undefined-fields-bug branch June 5, 2023 05:13
@Xilesun
Copy link
Contributor Author

Xilesun commented Jun 11, 2023

Close T-381

@height
Copy link

height bot commented Jun 11, 2023

This pull request has been linked to and will mark 1 task as "Done" when merged:

💡Tip: You can link multiple Height tasks to a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants