Skip to content

Commit

Permalink
fix: throw error for not tags
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 20, 2021
1 parent 03807e5 commit c912daf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ d3.json("data/git.json").then(function (json) {
renderBranches(data)
});

d3.json("data/git-tags.json").then(function (json) {
renderTagsTimeline(json);
d3.json("data/git-tags.json").then(function (data) {
if (data.length <= 0) {
throw Error("not tags");
}

renderTagsTimeline(data);
});

d3.json("data/git-commits.json").then(function (data) {
Expand Down

0 comments on commit c912daf

Please sign in to comment.