From 7a43e284aebc10089a400c6276271488b611b459 Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Sun, 27 Nov 2022 22:10:45 +0800 Subject: [PATCH] no log: Reset values when submitted settings --- frontend/src/pages/Settings/components/Layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/Settings/components/Layout.tsx b/frontend/src/pages/Settings/components/Layout.tsx index d89e04661..a0922cd95 100644 --- a/frontend/src/pages/Settings/components/Layout.tsx +++ b/frontend/src/pages/Settings/components/Layout.tsx @@ -32,7 +32,7 @@ const Layout: FunctionComponent = (props) => { useOnValueChange(isRefetching, (value) => { if (!value) { - form.setValues((values) => ({ ...values, settings: {} })); + form.reset(); } });