diff --git a/app/components/github/index.js b/app/components/github/index.js index dcd757dc..116feac8 100644 --- a/app/components/github/index.js +++ b/app/components/github/index.js @@ -4,11 +4,11 @@ import GithubPullRequestsList from "./githubpullreqeusts"; import GithubRepo from "./githubrepo"; const Github = (props) => { - if(props.type === 'issues'){ + if(props.type === 'issues' && typeof props.githubData.issues !== "undefined"){ return (); - }else if(props.type === 'pulls'){ + }else if(props.type === 'pulls' && typeof props.githubData.pulls !== "undefined"){ return() - }else if(props.type === 'contributors'){ + }else if(props.type === 'contributors' && typeof props.githubData.contributors !== "undefined"){ return (); } return (); diff --git a/app/components/gitlab/index.js b/app/components/gitlab/index.js index 23a8241f..a1c68848 100644 --- a/app/components/gitlab/index.js +++ b/app/components/gitlab/index.js @@ -4,11 +4,11 @@ import GitlabMergeList from "./gitlabMergeRequestList"; import GitlabProject from "./gitlabProject"; const Gitlab = (props) => { - if(props.type === 'issues'){ + if(props.type === 'issues'&& typeof props.gitlabData.issues !=="undefined"){ return (); - }else if(props.type === 'merges'){ + }else if(props.type === 'merges' && typeof props.gitlabData.merges !=="undefined"){ return() - }else if(props.type === 'members'){ + }else if(props.type === 'members' && typeof props.gitlabData.members!=="undefined"){ return (); } return ();