mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 13:59:28 +08:00
fix: The edit button cannot be used after using MCP. 修复对话中使用 MCP 后编辑按钮消失的问题 (#6623)
fix: The edit button cannot be used after using MCP.
This commit is contained in:
parent
6c394ec375
commit
f0335b5aaa
@ -154,7 +154,7 @@ const MessageMenubar: FC<Props> = (props) => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
const isEditable = useMemo(() => {
|
const isEditable = useMemo(() => {
|
||||||
return findMainTextBlocks(message).length === 1
|
return findMainTextBlocks(message).length > 0 // 使用 MCP Server 后会有大于一段 MatinTextBlock
|
||||||
}, [message])
|
}, [message])
|
||||||
|
|
||||||
const dropdownItems = useMemo(
|
const dropdownItems = useMemo(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user