diff --git a/docs/data/material/getting-started/versions/ReleasedVersions.js b/docs/data/material/getting-started/versions/ReleasedVersions.js index 21a52d41b4e120..a08683f13d7b43 100644 --- a/docs/data/material/getting-started/versions/ReleasedVersions.js +++ b/docs/data/material/getting-started/versions/ReleasedVersions.js @@ -21,33 +21,34 @@ export default function ReleasedVersions() { return ( - {versions.map((doc) => ( - - - - {doc.version} - {doc.version === `v${process.env.LIB_VERSION}` ? ' ✓' : ''} - - - - - Documentation - - - - {doc.version.length >= 6 && - doc.version.indexOf('pre-release') === -1 ? ( - - Release notes + {versions && + versions.map((doc) => ( + + + + {doc.version} + {doc.version === `v${process.env.LIB_VERSION}` ? ' ✓' : ''} + + + + + Documentation - ) : null} - - - ))} + + + {doc.version.length >= 6 && + doc.version.indexOf('pre-release') === -1 ? ( + + Release notes + + ) : null} + + + ))}
);