appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.52k stars 3.62k forks source link

Chartwidget breaks when ChartData is set directly. TypeError: undefined is not iterable #27491

Open sentry-io[bot] opened 11 months ago

sentry-io[bot] commented 11 months ago

Sentry Issue: APPSMITH-73J

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
  at forEach (widgets/ChartWidget/component/EChartsDatasetBuilder.ts:64:42)
  at Array.forEach (<anonymous>)
  at <object>.value (widgets/ChartWidget/component/EChartsDatasetBuilder.ts:60:41)
  at _this.getBasicEChartOptions (widgets/ChartWidget/component/index.tsx:137:36)
  at _this.renderECharts (widgets/ChartWidget/component/index.tsx:205:28)
...
(45 additional frame(s) were not displayed)
keyurparalkar commented 11 months ago

It is observed that the chart widget breaks when you try to set Chart1.chartData.data to test-string.

This can be observed in this smartlook recording

Steps to re-produce:

  1. Dnd a chart widget
  2. Configure the onDataPointClick such that on click of it you set Chart1.chartData.data to test-string.
  3. Observe that the widget breaks
sentry-io[bot] commented 11 months ago

Sentry issue: APPSMITH-73K

sentry-io[bot] commented 11 months ago

Sentry issue: APPSMITH-73M