Skip to content

Commit 88de908

Browse files
committed
[#28] fix console error
1 parent 434bdec commit 88de908

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/ProfilePageFlamegraph/ProfilePageFlamegraph.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export default defineComponent({
3737
},
3838
methods: {
3939
renderChart(canvas: HTMLCanvasElement, flameData: FlameChartNode) {
40+
if (!this.$refs.flamegraph) {
41+
return;
42+
}
4043
const { width = 1, height = 1 } = (
4144
this.$refs.flamegraph as HTMLElement
4245
).getBoundingClientRect();

0 commit comments

Comments
 (0)