Skip to content

Commit

Permalink
bug fix: Change versions to validVersions to prevent 404s (#2575)
Browse files Browse the repository at this point in the history
Change versions to validVersions to prevent 404s
  • Loading branch information
heatlikeheatwave authored Sep 23, 2024
1 parent 05ff87c commit c185ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/docs-view/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export function getStaticGenerationFunctions<
},
projectName: projectName || null,
versions:
!hideVersionSelector && hasMeaningfulVersions ? versions : null,
!hideVersionSelector && hasMeaningfulVersions ? validVersions : null,
}

return {
Expand Down

0 comments on commit c185ddf

Please sign in to comment.