From bb0c358ff54bf130a61ca2e93fa10ffea5badf3c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 17 Nov 2019 12:24:08 +0100 Subject: [PATCH] fix --- .github/workflows/test.yml | 1 + src/components/atoms/Changelog.tsx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 &&