Skip to content

Commit 6e8f2b2

Browse files
authored
fix: fetch resolved version for install size (#2086)
1 parent 9342f6c commit 6e8f2b2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/pages/package/[[org]]/[name].vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,17 @@ const {
143143
immediate: false,
144144
},
145145
)
146-
onMounted(() => fetchInstallSize())
146+
147+
// Trigger fetch only when we have the real resolved version
148+
watch(
149+
[resolvedVersion, resolvedStatus],
150+
([version, status]) => {
151+
if (version && status === 'success') {
152+
fetchInstallSize()
153+
}
154+
},
155+
{ immediate: true },
156+
)
147157
148158
const { data: skillsData } = useLazyFetch<SkillsListResponse>(
149159
() => {

0 commit comments

Comments
 (0)