mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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.
14 lines
524 B
Handlebars
14 lines
524 B
Handlebars
{{#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>
|
|
{{/if}}
|
|
{{/if}}
|