diff --git a/.vitepress/theme/fetchReleaseTag.js b/.vitepress/theme/fetchReleaseTag.js index 458e69d5..092d1899 100644 --- a/.vitepress/theme/fetchReleaseTag.js +++ b/.vitepress/theme/fetchReleaseTag.js @@ -13,8 +13,9 @@ export default function fetchReleaseTag() { const releaseTagName = json.tag_name docsReleaseTag.innerText = releaseTagName - - mainTitle.appendChild(docsReleaseTag) + if (releaseTagName !== undefined) { + mainTitle.appendChild(docsReleaseTag) + } }) }) }