Conditionally render test profiles in playground based on use testing flag

This commit is contained in:
akhisud3195 2025-04-07 17:07:06 +05:30
parent 01f16a11d3
commit f7a4afe49d
2 changed files with 15 additions and 14 deletions

View file

@ -131,15 +131,13 @@ export function App({
</div>
}
>
{USE_TESTING_FEATURE && (
<ProfileSelector
projectId={projectId}
isOpen={isProfileSelectorOpen}
onOpenChange={setIsProfileSelectorOpen}
onSelect={handleTestProfileChange}
selectedProfileId={testProfile?._id}
/>
)}
<ProfileSelector
projectId={projectId}
isOpen={isProfileSelectorOpen}
onOpenChange={setIsProfileSelectorOpen}
onSelect={handleTestProfileChange}
selectedProfileId={testProfile?._id}
/>
<div className="h-full overflow-auto px-4 py-4">
<Chat
key={`chat-${counter}`}