From 3e061dbf4b3623f8ede522707ea28c3cdb4844dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?netop=3A//=E3=82=A6=E3=82=A8=E3=83=8F?= Date: Thu, 11 Jul 2019 17:46:38 -0500 Subject: [PATCH] Hotfix: check for tag existence --- app/views/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/api.js b/app/views/api.js index 1f5de32..645c038 100644 --- a/app/views/api.js +++ b/app/views/api.js @@ -45,7 +45,7 @@ export default async(state) => { }; const tags = await getTags(repository); - const currentTag = tag.length ? tag : tags[0]; + const currentTag = tag && tag.length ? tag : tags[0]; try { const apiResponse = await parseApiFile({ repo: repository, tag: currentTag });