File tree Expand file tree Collapse file tree
frontend/src/features/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ type TaskTitleDropdownProps = {
3030} ;
3131
3232export 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 (
You can’t perform that action at this time.
0 commit comments