diff --git a/website/src/components/versionCallout/index.js b/website/src/components/versionCallout/index.js index abbef1e3188..79cf07d9ed9 100644 --- a/website/src/components/versionCallout/index.js +++ b/website/src/components/versionCallout/index.js @@ -1,7 +1,13 @@ import React from 'react'; import Admonition from '@theme/Admonition'; -const VersionCallout = ({ version }) => ( +const VersionCallout = ({ version }) => { + if (!version) { + // If no version is passed, render nothing or a default fallback message + return null; + } + + return (