|
@@ -319,7 +319,7 @@ export default {
|
|
|
})
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.graphRef.setOptions(this.graphOptions, async (graphInstance) => {
|
|
|
- if (!this.$refs.graphRef.setJsonData) {
|
|
|
+ if (!this.$refs.graphRef || !this.$refs.graphRef.setJsonData) {
|
|
|
return
|
|
|
}
|
|
|
this.$refs.graphRef.setJsonData(data, async (_graphInstance) => {
|