Skip to content

Commit ed0e384

Browse files
committed
fix: add missing guard
1 parent 57278f8 commit ed0e384

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/components/Package/VersionDistribution.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ const chartConfig = computed<VueUiXyConfig>(() => {
223223
loadFile(url, buildExportFilename('csv'))
224224
URL.revokeObjectURL(url)
225225
},
226-
svg: ({ blob }) => {
226+
svg: args => {
227+
const blob = args?.blob
228+
if (!blob) return
227229
const url = URL.createObjectURL(blob)
228230
loadFile(url, buildExportFilename('svg'))
229231
URL.revokeObjectURL(url)

0 commit comments

Comments
 (0)