diff --git a/calico-enterprise/_includes/components/ComponentVersions.js b/calico-enterprise/_includes/components/ComponentVersions.js index 3e50e821fa..4240b2e81e 100644 --- a/calico-enterprise/_includes/components/ComponentVersions.js +++ b/calico-enterprise/_includes/components/ComponentVersions.js @@ -10,7 +10,8 @@ export default function ComponentVersions() { const { prodname, version, downloadsurl } = variables; const releases = variables.releases.map((release) => { - }); + return release; + }).filter(release => release); return ( <> diff --git a/calico-enterprise_versioned_docs/version-3.18-2/_includes/components-temp/ComponentVersions-temp.js b/calico-enterprise_versioned_docs/version-3.18-2/_includes/components-temp/ComponentVersions-temp.js index e895f0656c..4240b2e81e 100644 --- a/calico-enterprise_versioned_docs/version-3.18-2/_includes/components-temp/ComponentVersions-temp.js +++ b/calico-enterprise_versioned_docs/version-3.18-2/_includes/components-temp/ComponentVersions-temp.js @@ -10,8 +10,8 @@ export default function ComponentVersions() { const { prodname, version, downloadsurl } = variables; const releases = variables.releases.map((release) => { - let note = release.note; - }); + return release; + }).filter(release => release); return ( <> diff --git a/calico-enterprise_versioned_docs/version-3.18-2/_includes/components/ComponentVersions.js b/calico-enterprise_versioned_docs/version-3.18-2/_includes/components/ComponentVersions.js index 3e50e821fa..4240b2e81e 100644 --- a/calico-enterprise_versioned_docs/version-3.18-2/_includes/components/ComponentVersions.js +++ b/calico-enterprise_versioned_docs/version-3.18-2/_includes/components/ComponentVersions.js @@ -10,7 +10,8 @@ export default function ComponentVersions() { const { prodname, version, downloadsurl } = variables; const releases = variables.releases.map((release) => { - }); + return release; + }).filter(release => release); return ( <> diff --git a/calico-enterprise_versioned_docs/version-3.19-1/_includes/components-temp/ComponentVersions-temp.js b/calico-enterprise_versioned_docs/version-3.19-1/_includes/components-temp/ComponentVersions-temp.js index 3e50e821fa..4240b2e81e 100644 --- a/calico-enterprise_versioned_docs/version-3.19-1/_includes/components-temp/ComponentVersions-temp.js +++ b/calico-enterprise_versioned_docs/version-3.19-1/_includes/components-temp/ComponentVersions-temp.js @@ -10,7 +10,8 @@ export default function ComponentVersions() { const { prodname, version, downloadsurl } = variables; const releases = variables.releases.map((release) => { - }); + return release; + }).filter(release => release); return ( <> diff --git a/calico-enterprise_versioned_docs/version-3.19-1/_includes/components/ComponentVersions.js b/calico-enterprise_versioned_docs/version-3.19-1/_includes/components/ComponentVersions.js index 3e50e821fa..4240b2e81e 100644 --- a/calico-enterprise_versioned_docs/version-3.19-1/_includes/components/ComponentVersions.js +++ b/calico-enterprise_versioned_docs/version-3.19-1/_includes/components/ComponentVersions.js @@ -10,7 +10,8 @@ export default function ComponentVersions() { const { prodname, version, downloadsurl } = variables; const releases = variables.releases.map((release) => { - }); + return release; + }).filter(release => release); return ( <> diff --git a/calico/_includes/components/ComponentVersions.js b/calico/_includes/components/ComponentVersions.js index 935b383a15..77373871be 100644 --- a/calico/_includes/components/ComponentVersions.js +++ b/calico/_includes/components/ComponentVersions.js @@ -10,7 +10,8 @@ export default function ComponentVersions() { const { prodname, version, downloadsurl } = variables; const releases = variables.releases.map((release) => { - }); + return release; + }).filter(release => release); return ( <> diff --git a/calico_versioned_docs/version-3.27/_includes/components/ComponentVersions.js b/calico_versioned_docs/version-3.27/_includes/components/ComponentVersions.js index 935b383a15..77373871be 100644 --- a/calico_versioned_docs/version-3.27/_includes/components/ComponentVersions.js +++ b/calico_versioned_docs/version-3.27/_includes/components/ComponentVersions.js @@ -10,7 +10,8 @@ export default function ComponentVersions() { const { prodname, version, downloadsurl } = variables; const releases = variables.releases.map((release) => { - }); + return release; + }).filter(release => release); return ( <>