diff --git a/web/templates/settings/add_new_bot_form.hbs b/web/templates/settings/add_new_bot_form.hbs
index 32a1b9e4b982b2..44ff274021895e 100644
--- a/web/templates/settings/add_new_bot_form.hbs
+++ b/web/templates/settings/add_new_bot_form.hbs
@@ -53,9 +53,9 @@
- {{#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}}