Skip to content

Commit

Permalink
Fix hidden variable decleration
Browse files Browse the repository at this point in the history
  • Loading branch information
mhasanince committed Nov 9, 2023
1 parent ef9f4fe commit 0ccf18e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/views/open-source-projects.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const HIDDEN_REPOS = import.meta.env.HIDDEN_REPOS.split(' ');
const data = await githubClient
.get('https://api.github.com/orgs/craftgate/repos')
.then((res: Array<GithubRepo>) =>
res.filter((repo) => !HIDDEN_REPOS.includes(repo.name)),
res.filter((repo) => !HIDDEN_REPOS.split(' ').includes(repo.name)),
);
---

Expand Down
4 changes: 2 additions & 2 deletions src/views/team.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { githubClient } from '@/utils';
import TeamMemberCard from '@/components/team-member-card.astro';
const HIDDEN_MEMBERS = import.meta.env.HIDDEN_MEMBERS.split(' ');
const HIDDEN_MEMBERS = import.meta.env.HIDDEN_MEMBERS;
const data = await githubClient
.get('https://api.github.com/orgs/craftgate/members')
.then((res: Array<Omit<GithubUser, 'name'>>) =>
res.filter((member) => !HIDDEN_MEMBERS.includes(member.login)),
res.filter((member) => !HIDDEN_MEMBERS.split(' ').includes(member.login)),
)
.then((members) => {
return Promise.all(
Expand Down

0 comments on commit 0ccf18e

Please sign in to comment.