Skip to content

Commit 8cc671d

Browse files
committed
Merge branch 'github_main' into 'develop'
style: hide title if no task is selected (wecode-ai#667) See merge request weibo_rd/common/wecode/wegent!895
2 parents b234038 + 66b69bd commit 8cc671d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

frontend/src/features/layout/TaskTitleDropdown.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ type TaskTitleDropdownProps = {
3030
};
3131

3232
export default function TaskTitleDropdown({
33-
title = 'Wegent',
33+
title,
3434
taskDetail,
3535
className,
3636
onTaskDeleted,
3737
}: TaskTitleDropdownProps) {
3838
const { t } = useTranslation();
3939
const router = useRouter();
4040
const { user } = useUser();
41-
const displayTitle = title || 'Wegent';
41+
const displayTitle = title;
4242
const isGroupChat = taskDetail?.is_group_chat || false;
4343

4444
const [showMembersDialog, setShowMembersDialog] = useState(false);
@@ -89,6 +89,11 @@ export default function TaskTitleDropdown({
8989
// Only show group chat options if it's a true group chat
9090
const showGroupChatOptions = isGroupChat;
9191

92+
// If no title, don't render anything
93+
if (!displayTitle) {
94+
return null;
95+
}
96+
9297
// If not a group chat, show simple dropdown
9398
if (!showGroupChatOptions) {
9499
return (

0 commit comments

Comments
 (0)