mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 06:49:02 +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 || []
|
const assistantPrompts = assistant.regularPhrases || []
|
||||||
setQuickPhrasesList([...assistantPrompts, ...phrases])
|
setQuickPhrasesList([...assistantPrompts, ...phrases])
|
||||||
},
|
},
|
||||||
[assistant]
|
[assistant.regularPhrases]
|
||||||
)
|
)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user