Fix search box disappearing in Sidebar component (#592)
Co-authored-by: Jamal Johnson <you@example.com>
This commit is contained in:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user