Hotfix: check for tag existence
This commit is contained in:
parent
8b9ca4302b
commit
3e061dbf4b
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export default async(state) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const tags = await getTags(repository);
|
const tags = await getTags(repository);
|
||||||
const currentTag = tag.length ? tag : tags[0];
|
const currentTag = tag && tag.length ? tag : tags[0];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const apiResponse = await parseApiFile({ repo: repository, tag: currentTag });
|
const apiResponse = await parseApiFile({ repo: repository, tag: currentTag });
|
||||||
|
|
Loading…
Reference in a new issue