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.

settings_bots: Avoid Handlebars iteration with block parameters.

Anders Kaseorg5d7da7e5372b
diff --git a/web/templates/settings/add_new_bot_form.hbs b/web/templates/settings/add_new_bot_form.hbs
index 32a1b9e4b98..44ff2740218 100644
--- a/web/templates/settings/add_new_bot_form.hbs
+++ b/web/templates/settings/add_new_bot_form.hbs
@@ -53,9 +53,9 @@
</div>
</div>
<div id="config_inputbox">
- {{#each realm_embedded_bots as |bot index|}}
- {{#each bot.config as |config_value config_key|}}
- {{> ../embedded_bot_config_item botname=bot.name key=config_key value=config_value}}
+ {{#each realm_embedded_bots}}
+ {{#each config}}
+ {{> ../embedded_bot_config_item botname=../name key=@key value=this}}
{{/each}}
{{/each}}
</div>