From 6e237507051de7dd98987f2419a04c8cf88c4dd4 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 10 Sep 2025 12:34:31 +0300 Subject: [PATCH] Fix clearing pending changes for First Run `TypeError: can't access property "section", a is undefined` --- frontend/src/FirstRun/AuthenticationRequiredModalContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/FirstRun/AuthenticationRequiredModalContent.tsx b/frontend/src/FirstRun/AuthenticationRequiredModalContent.tsx index 09f66d3812..84aefb1354 100644 --- a/frontend/src/FirstRun/AuthenticationRequiredModalContent.tsx +++ b/frontend/src/FirstRun/AuthenticationRequiredModalContent.tsx @@ -54,7 +54,7 @@ export default function AuthenticationRequiredModalContent() { dispatch(fetchGeneralSettings()); return () => { - dispatch(clearPendingChanges()); + dispatch(clearPendingChanges({ section: \`settings.\${SECTION}\` })); }; }, [dispatch]);