File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
frontend/src/views/chat/chat-block Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ function exportToImage() {
268268}
269269
270270watch (
271- () => chartObject .value .type ,
271+ () => chartObject .value ? .type ,
272272 (val ) => {
273273 if (val ) {
274274 currentChartType .value = val
@@ -326,7 +326,7 @@ watch(
326326 </el-button >
327327 </el-tooltip >
328328 </div >
329- <div v-if =" message?.record?.sql && data.length > 0 && message?.record?. chart" >
329+ <div v-if =" message?.record?.chart" >
330330 <el-popover
331331 ref =" exportRef"
332332 trigger =" click"
@@ -367,7 +367,7 @@ watch(
367367 </div >
368368 </el-popover >
369369 </div >
370- <div v-if =" message?.record?.sql && data.length > 0 && message?.record?. chart" >
370+ <div v-if =" message?.record?.chart" >
371371 <el-tooltip effect =" dark" :content =" t('chat.add_to_dashboard')" placement =" top" >
372372 <el-button class =" tool-btn" text @click =" addToDashboard" >
373373 <el-icon size =" 16" >
You can’t perform that action at this time.
0 commit comments