Skip to content

Commit

Permalink
Merge pull request hapijs#275 from jarrodyellets/master
Browse files Browse the repository at this point in the history
Remove empty usage
  • Loading branch information
jarrodyellets authored Jan 24, 2020
2 parents 6aeb6d7 + 9ac34b3 commit 340bcb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/family/_family/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export default {
}
);
}
if (moduleInfo[params.family][version].usage) {
if (moduleInfo[params.family][version].usage && moduleInfo[params.family][version].usage.length > 10) {
usageHTML = await $axios.$post(
"https://api.github.com/markdown",
{
Expand Down Expand Up @@ -309,7 +309,7 @@ export default {
if (this.modules[module][version].example) {
this.$store.commit("setExample", true);
}
if (this.modules[module][version].usage) {
if (this.modules[module][version].usage && this.modules[module][version].usage.length > 10) {
this.$store.commit("setUsage", true);
}
if (this.modules[module][version].faq) {
Expand Down
2 changes: 1 addition & 1 deletion static/lib/moduleInfo.json

Large diffs are not rendered by default.

0 comments on commit 340bcb6

Please sign in to comment.