refactor: useUserSettings uses global state to reduce db calls
This commit is contained in:
@@ -448,7 +448,7 @@ export const useChat = (agentId: string) => {
|
||||
FailedToGenerate,
|
||||
}
|
||||
const autoRename = async (topicId: string, prompt: string): Promise<Result<string, AutoRenameError>> => {
|
||||
const { settings } = await useUserSettings();
|
||||
const { settings } = useUserSettings();
|
||||
|
||||
console.log(settings.value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user