Skip to content

Commit 57278f8

Browse files
fix: add missing guard
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent c731f28 commit 57278f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/components/Package/TrendsChart.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,9 @@ const chartConfig = computed<VueUiXyConfig>(() => {
14511451
loadFile(url, buildExportFilename('csv'))
14521452
URL.revokeObjectURL(url)
14531453
},
1454-
svg: ({ blob }) => {
1454+
svg: args => {
1455+
const blob = args?.blob
1456+
if (!blob) return
14551457
const url = URL.createObjectURL(blob)
14561458
loadFile(url, buildExportFilename('svg'))
14571459
URL.revokeObjectURL(url)

0 commit comments

Comments
 (0)