Skip to content

Commit 8d52deb

Browse files
committed
refactor: Support adding the modified chart with retained type to the dashboard
1 parent e9d3f20 commit 8d52deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/views/chat/chat-block/ChartBlock.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function addToDashboard() {
216216
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
217217
const chartBaseInfo = JSON.parse(props.message?.record?.chart)
218218
recordeInfo['chart'] = {
219-
type: chartBaseInfo.type,
219+
type: currentChartType.value,
220220
title: chartBaseInfo.title,
221221
columns: chartBaseInfo.columns,
222222
xAxis: chartBaseInfo.axis?.x ? [chartBaseInfo.axis.x] : [],

0 commit comments

Comments
 (0)