mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +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
7794b5e880
commit
0d023ddbdc
@ -154,7 +154,7 @@ const MessageMenubar: FC<Props> = (props) => {
|
||||
)
|
||||
|
||||
const isEditable = useMemo(() => {
|
||||
return findMainTextBlocks(message).length === 1
|
||||
return findMainTextBlocks(message).length > 0 // 使用 MCP Server 后会有大于一段 MatinTextBlock
|
||||
}, [message])
|
||||
|
||||
const dropdownItems = useMemo(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user