mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 13:31:32 +08:00
fix: useAssistant hook 导致快捷助手渲染问题 (#9657)
This commit is contained in:
parent
2f5cd78f7f
commit
c376426cdf
@ -88,7 +88,7 @@ export function useAssistant(id: string) {
|
||||
const settingsRef = useRef(assistant?.settings)
|
||||
|
||||
useEffect(() => {
|
||||
settingsRef.current = assistant.settings
|
||||
settingsRef.current = assistant?.settings
|
||||
}, [assistant?.settings])
|
||||
|
||||
const updateAssistantSettings = useCallback(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user