Skip to content

Commit c669cc8

Browse files
committed
fix: refactor
1 parent ed0e384 commit c669cc8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/components/Package/TrendsChart.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,10 +1515,9 @@ const chartConfig = computed<VueUiXyConfig>(() => {
15151515
borderColor: 'transparent',
15161516
backdropFilter: false,
15171517
backgroundColor: 'transparent',
1518-
customFormat: ({ datapoint }) => {
1519-
if (!datapoint || pending.value) return ''
1518+
customFormat: ({ datapoint: items }) => {
1519+
if (!items || pending.value) return ''
15201520
1521-
const items = Array.isArray(datapoint) ? datapoint : [datapoint[0]]
15221521
const hasMultipleItems = items.length > 1
15231522
15241523
const rows = items

0 commit comments

Comments
 (0)