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 0c441b2 commit f3c1759Copy full SHA for f3c1759
app/components/Package/Header.vue
@@ -130,7 +130,12 @@ const diffLink = computed((): RouteLocationRaw | null => {
130
const { data: changelog } = usePackageChangelog(packageName, requestedVersion)
131
132
const changelogLink = computed((): RouteLocationRaw | null => {
133
- if (!changelog.value || props.pkg == null || props.resolvedVersion == null) {
+ if (
134
+ // either changelog.value is available or current page is the changelog
135
+ !(changelog.value || props.page == 'changes') ||
136
+ props.pkg == null ||
137
+ props.resolvedVersion == null
138
+ ) {
139
return null
140
}
141
return changelogRoute(props.pkg.name, props.resolvedVersion)
0 commit comments