Set lines to 0 by default

This commit is contained in:
lowlighter
2021-05-28 12:57:11 +02:00
parent d2d57626fd
commit 9f4faa3be9
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@
<div class="row fill-width"> <div class="row fill-width">
<% for (const row of rows) { %> <% for (const row of rows) { %>
<section> <section>
<% for (const {name, value, lines, color, size} of languages.filter((_, i) => i%rows.length === row)) { %> <% for (const {name, value, lines = 0, color, size} of languages.filter((_, i) => i%rows.length === row)) { %>
<div class="field language details"> <div class="field language details">
<div class="field"> <div class="field">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill="<%= color ?? "#959DA5" %>" fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8z"></path></svg> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill="<%= color ?? "#959DA5" %>" fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8z"></path></svg>

View File

@@ -36,7 +36,7 @@
<div class="row fill-width"> <div class="row fill-width">
<% for (const row of rows) { %> <% for (const row of rows) { %>
<section> <section>
<% for (const {name, value, lines, color, size} of languages.filter((_, i) => i%rows.length === row)) { %> <% for (const {name, value, lines = 0, color, size} of languages.filter((_, i) => i%rows.length === row)) { %>
<div class="field language details"> <div class="field language details">
<div class="field"> <div class="field">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill="<%= color ?? "#959DA5" %>" fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8z"></path></svg> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill="<%= color ?? "#959DA5" %>" fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8z"></path></svg>