From 88b7fd1f726f7bf482b531ab46ab39f30f63a71f Mon Sep 17 00:00:00 2001 From: Laura Silva <91160746+silvalaura@users.noreply.github.com> Date: Thu, 20 Jun 2024 11:50:31 -0400 Subject: [PATCH] react-magma-landing: Remove extra card with version 15 (#1319) --- .changeset/landing-version.md | 5 +++++ website/react-magma-landing/scripts/build.js | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .changeset/landing-version.md diff --git a/.changeset/landing-version.md b/.changeset/landing-version.md new file mode 100644 index 000000000..bddaab797 --- /dev/null +++ b/.changeset/landing-version.md @@ -0,0 +1,5 @@ +--- +"react-magma-landing": patch +--- + +fix: Remove card with version `^15.0.0` \ No newline at end of file diff --git a/website/react-magma-landing/scripts/build.js b/website/react-magma-landing/scripts/build.js index f9de42e56..dd36823c3 100644 --- a/website/react-magma-landing/scripts/build.js +++ b/website/react-magma-landing/scripts/build.js @@ -33,10 +33,12 @@ const versionsByReactDependency = ({ versions, time, tags }) => { var versionsByReactDep = new Map(); allVersions.forEach(versionObj => { - if (!versionsByReactDep.has(versionObj?.reactDependency)) { - versionsByReactDep.set(versionObj?.reactDependency, []); + if (!versionObj?.reactDependency.includes('^15.0.0')) { + if (!versionsByReactDep.has(versionObj?.reactDependency)) { + versionsByReactDep.set(versionObj?.reactDependency, []); + } + versionsByReactDep.get(versionObj?.reactDependency).push(versionObj); } - versionsByReactDep.get(versionObj?.reactDependency).push(versionObj); }); const latestVersions = [];