Skip to content

Commit a81353c

Browse files
committed
chore: fix test:types
1 parent 8314370 commit a81353c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/nuxt/composables/use-package-comparison.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ async function usePackageComparisonInComponent(packageNames: string[]) {
2323

2424
// Sync values to captured refs
2525
watchEffect(() => {
26-
capturedPackagesData.value = [...packagesData.value]
26+
capturedPackagesData.value = Array.isArray(packagesData.value)
27+
? [...packagesData.value]
28+
: []
2729
capturedStatus.value = status.value
2830
})
2931
capturedGetFacetValues = getFacetValues

0 commit comments

Comments
 (0)