Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ refactor: refactor the setting storage from localStorage to indexedDB #1180

Merged
merged 11 commits into from
Jan 30, 2024
Prev Previous commit
Next Next commit
🐛 fix: fix update default agent
  • Loading branch information
arvinxx committed Jan 30, 2024
commit d1ddfab2dda1ff267638e77e4c18342dd8e3adb1
2 changes: 1 addition & 1 deletion src/store/global/slices/settings/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ export const createSettingsSlice: StateCreator<
await get().setSettings({ themeMode });
},
updateDefaultAgent: async (agent) => {
await get().setSettings({ defaultAgent: merge(get().settings.defaultAgent, agent) });
await get().setSettings({ defaultAgent: agent });
},
});
Loading