mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
fix: do not display 'Untitled'
This commit is contained in:
parent
56da1c990a
commit
584eed0166
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user