Skip to content

Commit

Permalink
json member index commas
Browse files Browse the repository at this point in the history
  • Loading branch information
klasjersevi committed Aug 13, 2020
1 parent e5f0101 commit a809da2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions partials/all-docs/docs/member-index/member-index-json.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{~#unless @first~}},{{~/unless}}
{
"uid": "{{id}}",
{{#link id~}}
Expand All @@ -8,7 +7,7 @@
{{/if~}}
{{/link}}
}
,
{{#indexChildren ~}}
{{~#if @first~}},{{~/if}}
{{>member-index-json~}}
{{>member-index-json~}}
{{/indexChildren}}
4 changes: 0 additions & 4 deletions partials/all-docs/docs/member-index/member-index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
{{>member-index-nav-grouped level=0}}
</ul>
{{else if (optionEquals "member-index-format" "json")~}}
[
{{~>member-index-json~}}
]
{{~else~}}
<ul class="member-index member-index-grouped">
{{>member-index-grouped}}
Expand All @@ -38,9 +36,7 @@
{{>member-index-nav-grouped level=0}}
</ul>
{{else if (optionEquals "member-index-format" "json")~}}
{{#if @first }}[{{/if}}
{{~>member-index-json~}}
{{#if @last}}]{{/if}}
{{~else}}
<ul class="member-index member-index-grouped">
{{>member-index-grouped}}
Expand Down

0 comments on commit a809da2

Please sign in to comment.