From 5d7da7e5372bff628f7b76f189e43c0fe1f1b5e0 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 22 Mar 2023 00:52:15 -0700 Subject: [PATCH] settings_bots: Avoid Handlebars iteration with block parameters. The fix at https://github.com/handlebars-lang/handlebars.js/pull/1855 is not released yet. Signed-off-by: Anders Kaseorg --- web/templates/settings/add_new_bot_form.hbs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/templates/settings/add_new_bot_form.hbs b/web/templates/settings/add_new_bot_form.hbs index 32a1b9e4b9..44ff274021 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}}