Fix search box disappearing in Sidebar component (#592)

Co-authored-by: Jamal Johnson <you@example.com>
This commit is contained in:
Jay Johnson 2023-04-18 10:10:12 -04:00 committed by GitHub
parent 4f672b926a
commit cb922d9dc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -78,13 +78,11 @@ const Sidebar = <T,>({
<IconFolderPlus size={16} />
</button>
</div>
{items?.length > 0 && (
<Search
placeholder={t('Search prompts...') || ''}
searchTerm={searchTerm}
onSearch={handleSearchTerm}
/>
)}
<Search
placeholder={t('Search prompts...') || ''}
searchTerm={searchTerm}
onSearch={handleSearchTerm}
/>
<div className="flex-grow overflow-auto">
{items?.length > 0 && (