From 994175f3861b561170fed56df280740749a159bd Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 30 Jun 2021 10:06:33 -0400 Subject: [PATCH] Properly set use_tls initial value to bool (false) --- .../src/screens/NotificationTemplate/shared/typeFieldNames.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/screens/NotificationTemplate/shared/typeFieldNames.js b/awx/ui_next/src/screens/NotificationTemplate/shared/typeFieldNames.js index 6d4d3046a6..3c59908630 100644 --- a/awx/ui_next/src/screens/NotificationTemplate/shared/typeFieldNames.js +++ b/awx/ui_next/src/screens/NotificationTemplate/shared/typeFieldNames.js @@ -50,7 +50,7 @@ export default typeFieldNames; const initialConfigValues = {}; Object.keys(typeFieldNames).forEach(key => { typeFieldNames[key].forEach(fieldName => { - const isBoolean = fieldName.includes('_ssl'); + const isBoolean = fieldName.includes('_ssl') || fieldName === 'use_tls'; initialConfigValues[fieldName] = isBoolean ? false : ''; }); });