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