fix(TopicsTab): Topic prompts cannot be cleared

This commit is contained in:
ousugo 2025-03-28 13:40:03 +08:00 committed by 亢奋猫
parent b115c586f1
commit aa6f37282f

View File

@ -202,7 +202,7 @@ const Topics: FC<Props> = ({ assistant: _assistant, activeTopic, setActiveTopic
allowClear: true allowClear: true
} }
}) })
prompt && updateTopic({ ...topic, prompt: prompt.trim() }) prompt !== null && updateTopic({ ...topic, prompt: prompt.trim() })
} }
}, },
{ {