From dc950ed3fe2e92a24593c86ae7c0e07e56bd0726 Mon Sep 17 00:00:00 2001 From: Qing Date: Tue, 28 Jun 2022 22:58:50 +0800 Subject: [PATCH] fix localStorage restore --- lama_cleaner/app/src/store/Atoms.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lama_cleaner/app/src/store/Atoms.tsx b/lama_cleaner/app/src/store/Atoms.tsx index 0279b1a..7e98ed9 100644 --- a/lama_cleaner/app/src/store/Atoms.tsx +++ b/lama_cleaner/app/src/store/Atoms.tsx @@ -67,7 +67,7 @@ const localStorageEffect = if (savedValue != null) { const storageSettings = JSON.parse(savedValue) storageSettings.show = false - setSelf(storageSettings) + setSelf({ ...settingStateDefault, ...storageSettings }) } onSet((newValue: Settings, _: string, isReset: boolean) =>