Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

markdown_help: Fix reference to possibly missing variables.

Anders Kaseorga0447bbb5fed
diff --git a/web/templates/markdown_help.hbs b/web/templates/markdown_help.hbs
index fe6c17d1921..7438cf17f2c 100644
--- a/web/templates/markdown_help.hbs
+++ b/web/templates/markdown_help.hbs
@@ -16,8 +16,8 @@
{{#if note_html}}
<td colspan="2">{{{note_html}}}</td>
{{else}}
- <td><div class="preserve_spaces">{{markdown}}</div> {{{usage_html}}}</td>
- <td class="rendered_markdown">{{{output_html}}} {{{effect_html}}}</td>
+ <td><div class="preserve_spaces">{{markdown}}</div> {{#if usage_html}}{{{usage_html}}}{{/if}}</td>
+ <td class="rendered_markdown">{{{output_html}}} {{#if effect_html}}{{{effect_html}}}{{/if}}</td>
{{/if}}
</tr>
{{/each}}