1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-20 18:02:44 +01:00

Fixed: Disable movie search button if none are listed

This commit is contained in:
Bogdan 2023-12-28 16:27:22 +02:00
parent eab470c67f
commit b92e08b850

View File

@ -21,7 +21,6 @@ function MovieIndexSearchButton(props: MovieIndexSearchButtonProps) {
const isSearching = useSelector(createCommandExecutingSelector(MOVIE_SEARCH));
const {
items,
totalItems,
}: MoviesAppState & MovieIndexAppState & ClientSideCollectionAppState =
useSelector(createMovieClientSideCollectionItemsSelector('movieIndex'));
@ -62,7 +61,7 @@ function MovieIndexSearchButton(props: MovieIndexSearchButtonProps) {
<PageToolbarButton
label={isSelectMode ? searchSelectLabel : searchIndexLabel}
isSpinning={isSearching}
isDisabled={!totalItems}
isDisabled={!items.length}
iconName={icons.SEARCH}
onPress={onPress}
/>