Skip to content

Commit 809d3ea

Browse files
committed
fixbug blank tapi masih
1 parent ccf1af6 commit 809d3ea

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

frontend/src/components/ProjectManagement.tsx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3092,15 +3092,23 @@ export default function ProjectManagement({
30923092
onRefreshTasks={() => setIsRequestSync(true)}
30933093
/>
30943094
)}
3095-
{viewMode === "DM" && activeWorkspaceId && authTeamMemberId && (
3096-
<DirectMessages
3097-
workspaceId={activeWorkspaceId}
3098-
myMemberId={authTeamMemberId}
3099-
myName={user?.name ?? "Unknown"}
3100-
myPhoto={userPhoto ?? undefined}
3101-
team={team}
3102-
isPlaySound={isPlaySound}
3103-
/>
3095+
{viewMode === "DM" && activeWorkspaceId && (
3096+
<>
3097+
{authTeamMemberId ? (
3098+
<DirectMessages
3099+
workspaceId={activeWorkspaceId}
3100+
myMemberId={authTeamMemberId}
3101+
myName={user?.name ?? "Unknown"}
3102+
myPhoto={userPhoto ?? undefined}
3103+
team={team}
3104+
isPlaySound={isPlaySound}
3105+
/>
3106+
) : (
3107+
<div className="flex items-center justify-center py-20 text-gray-400 text-sm">
3108+
Loading team data…
3109+
</div>
3110+
)}
3111+
</>
31043112
)}
31053113
{viewMode === "INTEGRATIONS" && activeWorkspaceId && (
31063114
<IntegrationsPanel workspaceId={activeWorkspaceId} />

0 commit comments

Comments
 (0)