Skip to content

Commit edaeac0

Browse files
committed
fix: predict data display
1 parent b122a47 commit edaeac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/views/chat/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ function getChatPredictData(recordId?: number) {
569569
chatApi.get_chart_predict_data(recordId).then((response) => {
570570
currentChat.value.records.forEach((record) => {
571571
if (record.id === recordId) {
572-
record.predict_data = response
572+
record.predict_data = response.data ?? []
573573
}
574574
})
575575
})

0 commit comments

Comments
 (0)