Skip to content

Commit

Permalink
chore: fix yarn build:website:fast (#6421)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jan 20, 2022
1 parent 4e69c05 commit aaf748c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/src/components/UpgradeGuide/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function PackageJson() {
const allVersions = useVersions();
// Only happens in deploy preview / local dev, but still nice
const versionName =
latestVersion.name === 'current' ? allVersions[1].name : latestVersion.name;
latestVersion.name === 'current' && allVersions.length > 1
? allVersions[1].name
: latestVersion.name;
return (
<CodeBlock language="json" title="package.json">{`{
"dependencies": {
Expand Down

0 comments on commit aaf748c

Please sign in to comment.