We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb12a0a commit baf0822Copy full SHA for baf0822
app/components/Package/DeprecatePackageModal.vue
@@ -56,11 +56,13 @@ const isSelectedVersionDeprecated = computed(() => {
56
// Load full version list so deprecated check includes "Other versions"
57
watch(
58
() => props.packageName,
59
- name => {
+ async name => {
60
if (!name) return
61
- fetchAllPackageVersions(name).then(versions => {
62
- allPackageVersions.value = versions
63
- })
+ try {
+ allPackageVersions.value = await fetchAllPackageVersions(name)
+ } catch {
64
+ allPackageVersions.value = null
65
+ }
66
},
67
{ immediate: true },
68
)
0 commit comments