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
+5 -7
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 && (