File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
views/dashboard/modules/data-view/components Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,7 @@ export default function useDataChart(data: ResultType) {
24
24
...item ,
25
25
index,
26
26
} ) )
27
- . filter (
28
- ( item : SchemaType ) =>
29
- ! dateTypes . find ( ( type : string ) => type === item . data_type ) && item . name !== chartForm . selectedYTypes [ 0 ]
30
- )
27
+ . filter ( ( item : SchemaType ) => item . data_type === 'String' && item . name !== chartForm . selectedYTypes [ 0 ] )
31
28
} )
32
29
33
30
const xOptions = computed ( ( ) => {
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ a-card(v-if="hasChart" :bordered="false")
303
303
if (props .defaultChartForm .groupBySelectedTypes ?.length ) {
304
304
chartForm .groupBySelectedTypes = props .defaultChartForm .groupBySelectedTypes
305
305
} else if (groupByOptions .value .length ) {
306
- chartForm .groupBySelectedTypes = [ groupByOptions .value [ 0 ]. name ]
306
+ chartForm .groupBySelectedTypes = groupByOptions .value . map (( item ) => item . name )
307
307
}
308
308
}
309
309
})
You can’t perform that action at this time.
0 commit comments