diff --git a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue index 58f49bca1c..9a864b18f9 100644 --- a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue +++ b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue @@ -159,7 +159,8 @@ export default { computed: { chart() { if (this.config.propValue?.viewId) { - return JSON.parse(this.panelViewDetailsInfo[this.config.propValue.viewId]) + const viewInfo = this.panelViewDetailsInfo[this.config.propValue.viewId]; + return viewInfo?JSON.parse(viewInfo):null } return null },