Skip to content

Commit

Permalink
fix drodown bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kaddy645 committed Oct 27, 2022
1 parent fd2c303 commit 9e014da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-docs/src/components/guide_page/guide_page_header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export const GuidePageHeader: React.FunctionComponent<GuidePageHeaderProps> = ({
}

function renderVersion() {
return <version-selector selected={pkg.version} />;
const trimVersion = pkg.version.replace(/^(\d+\.\d+)\..*/, '$1');
return <version-selector selected={trimVersion} />;
}

function renderGithub() {
Expand Down

0 comments on commit 9e014da

Please sign in to comment.