mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 12:24:46 +08:00
fix: do not display 'Untitled'
This commit is contained in:
@@ -55,10 +55,15 @@ export default function ChatPage() {
|
|||||||
isNewThread,
|
isNewThread,
|
||||||
threadId,
|
threadId,
|
||||||
});
|
});
|
||||||
const title = useMemo(
|
const title = useMemo(() => {
|
||||||
() => (isNewThread ? "" : titleOfThread(thread as unknown as AgentThread)),
|
let result = isNewThread
|
||||||
[thread, isNewThread],
|
? ""
|
||||||
);
|
: titleOfThread(thread as unknown as AgentThread);
|
||||||
|
if (result === "Untitled") {
|
||||||
|
result = "";
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}, [thread, isNewThread]);
|
||||||
|
|
||||||
const handleSubmit = useSubmitThread({
|
const handleSubmit = useSubmitThread({
|
||||||
isNewThread,
|
isNewThread,
|
||||||
|
|||||||
Reference in New Issue
Block a user