From bef77c8ccabed53311710b898bfe5bec13f6c0ae Mon Sep 17 00:00:00 2001 From: afeefuddin Date: Sun, 14 Jul 2024 19:57:09 +0530 Subject: [PATCH] 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. --- .../settings/edit_embedded_bot_service.hbs | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/web/templates/settings/edit_embedded_bot_service.hbs b/web/templates/settings/edit_embedded_bot_service.hbs index 22412196f1..5f01eb39ab 100644 --- a/web/templates/settings/edit_embedded_bot_service.hbs +++ b/web/templates/settings/edit_embedded_bot_service.hbs @@ -1,9 +1,13 @@ -
- {{#each service.config_data}} -
- - +{{#if service}} + {{#if service.config_data}} +
+ {{#each service.config_data}} +
+ + +
+ {{/each}}
- {{/each}} -
+ {{/if}} +{{/if}}