Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions apps/web/src/components/chat/DraftHeroHeadline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export function DraftHeroHeadline({
),
) ?? null);
const activeProjectKey = activeProjectGroup?.projectKey ?? "";
const activeProjectDisplayName = activeProjectGroup?.displayName ?? activeProjectTitle;
const hasResolvedProject = activeProjectTitle !== null;
const canChooseProject = projectPickerEntries.length > 0;
const shouldShowProjectMenu = canChooseProject;
Expand Down Expand Up @@ -302,12 +301,12 @@ export function DraftHeroHeadline({
}
>
<DraftProjectName
value={isScratchDraft ? "No project" : (activeProjectDisplayName ?? "Choose a project")}
value={isScratchDraft ? "No project" : (activeProjectTitle ?? "Choose a project")}
singleLine
/>
</TooltipTrigger>
{activeProjectDisplayName && !isScratchDraft ? (
<TooltipPopup side="top">{activeProjectDisplayName}</TooltipPopup>
{activeProjectTitle && !isScratchDraft ? (
<TooltipPopup side="top">{activeProjectTitle}</TooltipPopup>
) : null}
</Tooltip>
<ComboboxPopup align="center" className="w-72 overflow-hidden">
Expand Down Expand Up @@ -415,7 +414,7 @@ export function DraftHeroHeadline({
return (
<div className="mx-auto flex w-full max-w-5xl flex-col items-center">
{hasResolvedProject && !isScratchDraft ? (
<DraftHeroProjectHeading projectName={activeProjectDisplayName ?? "Choose a project"}>
<DraftHeroProjectHeading projectName={activeProjectTitle ?? "Choose a project"}>
{projectSelector}
</DraftHeroProjectHeading>
) : (
Expand Down
Loading