Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/ReactBubbleChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ class ReactBubbleChart extends React.Component {

/** When we update, update our friend, the bubble chart */
componentDidUpdate() {
this.bubbleChart.update(this.getDOMNode(), this.getChartState());
// Apparently updates can happen before a mount, so deal with this scenario
if (this.bubbleChart) {
this.bubbleChart.update(this.getDOMNode(), this.getChartState());
}
}

/** Define what props get passed down to the d3 chart */
Expand Down