1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Fix: Correct use of splice function

This commit is contained in:
Akshay 2021-09-24 17:05:52 +02:00
parent bb4be5b7ff
commit 2011912c8a

View File

@ -90,8 +90,7 @@ const Repository = ({ name, links, readme }) => (
.filter(({ node }) => { .filter(({ node }) => {
return !node.isDraft return !node.isDraft
}) })
.splice(1) .splice(0, 1)
repo = { repo = {
...repo, ...repo,
releases: { edges: releasesFilteredArray } releases: { edges: releasesFilteredArray }