From 7b8c5f185ca68721e2541ff9a5038b34c590e653 Mon Sep 17 00:00:00 2001 From: ousugo Date: Fri, 28 Mar 2025 13:40:03 +0800 Subject: [PATCH] fix(TopicsTab): Topic prompts cannot be cleared --- src/renderer/src/pages/home/Tabs/TopicsTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/pages/home/Tabs/TopicsTab.tsx b/src/renderer/src/pages/home/Tabs/TopicsTab.tsx index 6d68ac28..b638af15 100644 --- a/src/renderer/src/pages/home/Tabs/TopicsTab.tsx +++ b/src/renderer/src/pages/home/Tabs/TopicsTab.tsx @@ -202,7 +202,7 @@ const Topics: FC = ({ assistant: _assistant, activeTopic, setActiveTopic allowClear: true } }) - prompt && updateTopic({ ...topic, prompt: prompt.trim() }) + prompt !== null && updateTopic({ ...topic, prompt: prompt.trim() }) } }, {