Hotfix: check for tag existence

This commit is contained in:
netop://ウエハ 2019-07-11 17:46:38 -05:00
parent 8b9ca4302b
commit 3e061dbf4b

View file

@ -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 });