mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 03:31:24 +08:00
fix(QuickPhrasesButton): resolve QuickPhrases database error (#7872)
fix(QuickPhrasesButton): 修复依赖assistant导致的频繁更新报错问题
This commit is contained in:
parent
60a3cac80d
commit
c25f1f856a
@ -45,7 +45,7 @@ const QuickPhrasesButton = ({ ref, setInputValue, resizeTextArea, ToolbarButton,
|
||||
const assistantPrompts = assistant.regularPhrases || []
|
||||
setQuickPhrasesList([...assistantPrompts, ...phrases])
|
||||
},
|
||||
[assistant]
|
||||
[assistant.regularPhrases]
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user