mirror of https://github.com/zulip/zulip.git
edit_embedded_bot: Check if service is defined.
It's likely that service is undefined which results in error while loading the template. We should check if the service and service.config_data is defined or not to avoid throwing errors.
This commit is contained in:
parent
4457225d35
commit
bef77c8cca
|
@ -1,4 +1,6 @@
|
|||
<div id="config_edit_inputbox">
|
||||
{{#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>
|
||||
|
@ -6,4 +8,6 @@
|
|||
maxlength=1000 value="{{this}}" />
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue