Skip to content

Commit 317e616

Browse files
committed
DownloadGraph: Only call destroy if the Chart instance has been created
1 parent 1336a76 commit 317e616

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)