Skip to content

Commit

Permalink
react-magma-landing: Remove extra card with version 15 (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvalaura authored Jun 20, 2024
1 parent b123e0c commit 88b7fd1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/landing-version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-magma-landing": patch
---

fix: Remove card with version `^15.0.0`
8 changes: 5 additions & 3 deletions website/react-magma-landing/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

2 comments on commit 88b7fd1

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.