mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
embedded bots UI: Fix wrong _.each argument order.
This commit is contained in:
@@ -92,9 +92,9 @@ exports.set_up = function () {
|
||||
value: bot.name,
|
||||
text: bot.name,
|
||||
}));
|
||||
_.each(bot.config, function (key) {
|
||||
_.each(bot.config, function (value, key) {
|
||||
var rendered_config_item = templates.render('embedded_bot_config_item',
|
||||
{botname: bot.name, key: key, value: bot.config[key]});
|
||||
{botname: bot.name, key: key, value: value});
|
||||
$('#config_inputbox').append(rendered_config_item);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user