diff --git a/core/core-frontend/src/utils/canvasUtils.ts b/core/core-frontend/src/utils/canvasUtils.ts index 50cdc8060c..fba260aea4 100644 --- a/core/core-frontend/src/utils/canvasUtils.ts +++ b/core/core-frontend/src/utils/canvasUtils.ts @@ -985,11 +985,12 @@ export function mobileViewStyleSwitch(component) { } export function syncViewTitle(element) { - if ( - element && - ['UserView', 'VQuery'].includes(element.component) && - canvasViewInfo.value[element.id] - ) { - canvasViewInfo.value[element.id].title = element.name + if (element && canvasViewInfo.value[element.id]) { + if (['UserView'].includes(element.component)) { + canvasViewInfo.value[element.id].title = element.name + } else if (['VQuery'].includes(element.component)) { + canvasViewInfo.value[element.id].title = element.name + canvasViewInfo.value[element.id].customStyle.component.title = element.name + } } } diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue index c44bd5dece..5e7d0a8eed 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue @@ -1,8 +1,7 @@