Skip to content

Commit 2479b7f

Browse files
committed
Auto merge of #3275 - Turbo87:destroy, r=locks
DownloadGraph: Only call `destroy` if the `Chart` instance has been created Fixes #3256
2 parents 8e20dbf + 317e616 commit 2479b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/download-graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class DownloadGraph extends Component {
5959
}
6060

6161
@action destroyChart() {
62-
this.chart.destroy();
62+
this.chart?.destroy();
6363
}
6464

6565
@action reloadPage() {

0 commit comments

Comments
 (0)