"...composable_kernel_rocm.git" did not exist on "ccf10794dad5aa37545508aa81a80067089dec13"
Commit b7ff3af4 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: new chat settings issue

parent c342aa2f
...@@ -84,7 +84,6 @@ ...@@ -84,7 +84,6 @@
let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}'); let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
console.log(_settings); console.log(_settings);
settings.set({ settings.set({
...$settings,
..._settings ..._settings
}); });
}; };
......
...@@ -82,10 +82,11 @@ ...@@ -82,10 +82,11 @@
: convertMessagesToHistory(chat.messages); : convertMessagesToHistory(chat.messages);
title = chat.title; title = chat.title;
let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
await settings.set({ await settings.set({
...$settings, ..._settings,
system: chat.system ?? $settings.system, system: chat.system ?? _settings.system,
options: chat.options ?? $settings.options options: chat.options ?? _settings.options
}); });
autoScroll = true; autoScroll = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment