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.

edit_embedded_bot: Check if service is defined.

afeefuddinbef77c8ccabe
diff --git a/web/templates/settings/edit_embedded_bot_service.hbs b/web/templates/settings/edit_embedded_bot_service.hbs
index 22412196f19..5f01eb39ab1 100644
--- a/web/templates/settings/edit_embedded_bot_service.hbs
+++ b/web/templates/settings/edit_embedded_bot_service.hbs
@@ -1,9 +1,13 @@
-<div id="config_edit_inputbox">
- {{#each service.config_data}}
- <div class="input-group">
- <label for="embedded_bot_{{@key}}_edit" class="modal-field-label">{{@key}}</label>
- <input type="text" name="{{@key}}" id="embedded_bot_{{@key}}_edit" class="modal_text_input"
- maxlength=1000 value="{{this}}" />
+{{#if service}}
+ {{#if service.config_data}}
+ <div id="config_edit_inputbox">
+ {{#each service.config_data}}
+ <div class="input-group">
+ <label for="embedded_bot_{{@key}}_edit" class="modal-field-label">{{@key}}</label>
+ <input type="text" name="{{@key}}" id="embedded_bot_{{@key}}_edit" class="modal_text_input"
+ maxlength=1000 value="{{this}}" />
+ </div>
+ {{/each}}
</div>
- {{/each}}
-</div>
+ {{/if}}
+{{/if}}