fix h2 not showing for categories with children

This commit is contained in:
Kim, Jimin 2022-11-21 13:26:10 +09:00
parent a13fd237f0
commit 6100bf3b3d

View file

@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="480" height="750">
<svg xmlns="http://www.w3.org/2000/svg" width="480" height="800">
<style>
<%= style %>
</style>
@ -9,8 +9,8 @@
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<% for (let key in data) { %>
<h2><%- key %></h2>
<% if(data[key] instanceof Array){ %>
<h2><%- key %></h2>
<%- include("badges.ejs", { badges: data[key] }) %>
<% } else{ %>
<% for (let subKey in data[key]) { %>

Before

Width:  |  Height:  |  Size: 639 B

After

Width:  |  Height:  |  Size: 638 B

Before After
Before After