Add fix for undefined name being slugified

This commit is contained in:
Alistair McKinlay 2017-04-17 08:25:21 +01:00
parent 8658f15751
commit adfd99c92c

View File

@ -1,5 +1,5 @@
{{#each networks}}
<section id="network-{{id}}" class="network name-{{slugify name}} network-{{slugify serverOptions.NETWORK}}" data-id="{{id}}" data-nick="{{nick}}" data-options="{{tojson serverOptions}}">
<section id="network-{{id}}" class="network name-{{slugify name}} {{#if serverOptions.NETWORK}}network-{{slugify serverOptions.NETWORK}}{{/if}}" data-id="{{id}}" data-nick="{{nick}}" data-options="{{tojson serverOptions}}">
{{> chan}}
</section>
{{/each}}