fix: model list update after save

This commit is contained in:
Timothy J. Baek 2023-11-22 13:07:25 -08:00
parent b7f3607f48
commit 044ee2a78c

View File

@ -12,6 +12,7 @@
const saveSettings = async (updated) => { const saveSettings = async (updated) => {
console.log(updated); console.log(updated);
await settings.set({ ...$settings, ...updated }); await settings.set({ ...$settings, ...updated });
await models.set(await getModels());
localStorage.setItem('settings', JSON.stringify($settings)); localStorage.setItem('settings', JSON.stringify($settings));
}; };