From 714f693acffe6df103aa422998143c49095a51f8 Mon Sep 17 00:00:00 2001 From: Pawan Jain Date: Thu, 30 Nov 2023 13:17:34 +0530 Subject: [PATCH] fix: change default value to true for switch (#4882) Co-authored-by: Dima Grossman --- .../pages/templates/components/TemplateEditorFormProvider.tsx | 2 +- .../notification-setting-form/TemplatePreference.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/src/pages/templates/components/TemplateEditorFormProvider.tsx b/apps/web/src/pages/templates/components/TemplateEditorFormProvider.tsx index 6c9a5e3255e..703b210204f 100644 --- a/apps/web/src/pages/templates/components/TemplateEditorFormProvider.tsx +++ b/apps/web/src/pages/templates/components/TemplateEditorFormProvider.tsx @@ -150,7 +150,7 @@ const defaultValues: IForm = { description: '', identifier: '', tags: [], - critical: false, + critical: true, steps: [], preferenceSettings: { email: true, diff --git a/apps/web/src/pages/templates/components/notification-setting-form/TemplatePreference.tsx b/apps/web/src/pages/templates/components/notification-setting-form/TemplatePreference.tsx index dcd8b5b6905..f4eb5ce10a1 100644 --- a/apps/web/src/pages/templates/components/notification-setting-form/TemplatePreference.tsx +++ b/apps/web/src/pages/templates/components/notification-setting-form/TemplatePreference.tsx @@ -49,6 +49,7 @@ export function ChannelPreference() { borderRadius: 8, }} position="apart" + key={key} > {}
@@ -76,7 +77,7 @@ export function CriticalPreference() { return ( { return (