diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 355a6903..e90e7481 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,7 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: diff --git a/src/components/atoms/Changelog.tsx b/src/components/atoms/Changelog.tsx index ca8808ad..24e25e76 100644 --- a/src/components/atoms/Changelog.tsx +++ b/src/components/atoms/Changelog.tsx @@ -19,9 +19,10 @@ export function PureChangelog({ .filter((n: any) => n) const repoMatch = repoFilteredArray[0] - const { object, url, owner } = repoMatch + if (!repoMatch) return null - if (repoMatch === undefined || object === undefined) return null + const { object, url, owner } = repoMatch + if (!object) return null const changelogHtml = object &&