Skip to content

Commit

Permalink
fix: missing dom reference in TimeSeriesChart (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
jantolg committed Mar 5, 2024
1 parent b8a6904 commit 732cc12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# CHANGELOG

## Not released

- Fix TimeSeriesWidgetUI check undefined echart.getInstance().getDom() [#842](https://github.com/CartoDB/carto-react/pull/842)

## 2.3

### 2.3.12 (2024-02-19)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export default function TimeSeriesChart({
return;
}

const element = echartsInstance.getDom().parentElement;
const element = echartsInstance?.getDom()?.parentElement;

if (!element) return;

Expand Down

0 comments on commit 732cc12

Please sign in to comment.