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