From 13b6b463d317a0e3f14e49a7776dd209047e48d5 Mon Sep 17 00:00:00 2001 From: jadmsaadaot <91914654+jadmsaadaot@users.noreply.github.com> Date: Fri, 6 Oct 2023 09:21:20 -0700 Subject: [PATCH] Decrease auto save interval to 5 seconds after change (#2301) --- met-web/src/components/survey/building/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/met-web/src/components/survey/building/index.tsx b/met-web/src/components/survey/building/index.tsx index 98db7645b..01a0ec6e5 100644 --- a/met-web/src/components/survey/building/index.tsx +++ b/met-web/src/components/survey/building/index.tsx @@ -65,7 +65,7 @@ const SurveyFormBuilder = () => { const [isTemplateSurvey, setIsTemplateSurvey] = useState(savedSurvey ? savedSurvey.is_template : false); const [autoSaveNotificationOpen, setAutoSaveNotificationOpen] = useState(false); - const AUTO_SAVE_INTERVAL = 60000; + const AUTO_SAVE_INTERVAL = 5000; useEffect(() => { loadSurvey();