File tree Expand file tree Collapse file tree
apps/frontend/src/modules/song-search Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ export const SearchSongPage = () => {
561561 < select
562562 value = { sort }
563563 onChange = { ( e ) => handleSortChange ( e . target . value ) }
564- disabled = { loading }
564+ disabled = { loading || songs . length === 0 }
565565 className = 'h-10 w-48 rounded-md bg-zinc-900 border-2 border-zinc-600 hover:enabled:border-zinc-500 disabled:opacity-50 focus:border-blue-500 focus:outline-hidden px-1.5 text-sm transition-colors'
566566 >
567567 < option value = { SongSortType . RECENT } > Recent</ option >
@@ -576,7 +576,7 @@ export const SearchSongPage = () => {
576576 < button
577577 className = 'bg-zinc-700 hover:enabled:bg-zinc-600 disabled:opacity-50 h-10 w-10 rounded-md flex items-center justify-center transition-colors enabled:cursor-pointer'
578578 onClick = { handleOrderChange }
579- disabled = { loading }
579+ disabled = { loading || songs . length === 0 }
580580 aria-label = {
581581 order === SongOrderType . ASC
582582 ? 'Sort ascending'
You can’t perform that action at this time.
0 commit comments