File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
frontend/src/views/dashboard/editor Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ function selectChange(value: boolean, viewInfo: any) {
9797}
9898
9999const getData = (record : any ) => {
100+ const recordData = record .data
100101 if (record ?.predict_record_id !== undefined && record ?.predict_record_id !== null ) {
101102 let _list = []
102103 if (record ?.predict_data && typeof record ?.predict_data === ' string' ) {
@@ -121,13 +122,15 @@ const getData = (record: any) => {
121122 return _list
122123 }
123124
124- if (record .data && record .data .length > 0 ) {
125- return concat (record .data , _list )
125+ if (recordData .data && recordData .data .length > 0 ) {
126+ recordData .data = concat (recordData .data , _list )
127+ } else {
128+ recordData .data = _list
126129 }
127130
128- return _list
131+ return recordData
129132 } else {
130- return record . data
133+ return recordData
131134 }
132135}
133136
@@ -142,7 +145,7 @@ function adaptorChartInfoList(chatInfo: ChatInfo) {
142145 (record ?.sql || record ?.chart )) ||
143146 (record ?.predict_record_id !== undefined &&
144147 record ?.predict_record_id !== null &&
145- data .length > 0 )
148+ data .data . length > 0 )
146149 ) {
147150 const recordeInfo = { id: chatInfo .id + ' _' + record .id , data: data , chart: {} }
148151 const chartBaseInfo = JSON .parse (record .chart )
You can’t perform that action at this time.
0 commit comments