Skip to content

Commit 8356bba

Browse files
committed
fix: fix dashboard view select repeat
1 parent c6b16e7 commit 8356bba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/views/dashboard/editor/ChatChartSelection.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ function adaptorChartInfoList(chatInfo: ChatInfo) {
9999
chartInfoList.value = []
100100
if (chatInfo && chatInfo.records) {
101101
chatInfo.records.forEach((record: any) => {
102-
if (record?.chart && record.data) {
102+
if (
103+
(record?.analysis_record_id === undefined || record?.analysis_record_id === null) &&
104+
(record?.predict_record_id === undefined || record?.predict_record_id === null) &&
105+
record?.chart &&
106+
record.data
107+
) {
103108
const recordeInfo = { id: chatInfo.id + '_' + record.id, data: record.data, chart: {} }
104109
const chartBaseInfo = JSON.parse(record.chart)
105110
recordeInfo['chart'] = {

0 commit comments

Comments
 (0)