mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
fix: Duplicate dialog when clearing messages (#10721)
This commit is contained in:
parent
b74655651d
commit
c457d4a868
@ -288,13 +288,7 @@ export const Topics: React.FC<Props> = ({ assistant: _assistant, activeTopic, se
|
||||
label: t('chat.topics.clear.title'),
|
||||
key: 'clear-messages',
|
||||
icon: <BrushCleaning size={14} />,
|
||||
async onClick() {
|
||||
window.modal.confirm({
|
||||
title: t('chat.input.clear.content'),
|
||||
centered: true,
|
||||
onOk: () => onClearMessages(topic)
|
||||
})
|
||||
}
|
||||
onClick: () => onClearMessages(topic)
|
||||
},
|
||||
{
|
||||
label: t('settings.topic.position.label'),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user