Merge pull request #1044 from thelounge/1043-slugify-undefined

Add fix for undefined name being slugified
This commit is contained in:
Al McKinlay 2017-04-21 14:35:18 +01:00 committed by GitHub
commit ef8a2bab18

View File

@ -1,5 +1,5 @@
{{#each networks}} {{#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}} {{> chan}}
</section> </section>
{{/each}} {{/each}}