mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-17 07:49:45 +02:00
Avoid double movie fetch on UI load
This commit is contained in:
parent
695cab3f3a
commit
fe76cbfc6b
@ -25,7 +25,6 @@ import SortDirection from 'Helpers/Props/SortDirection';
|
|||||||
import InteractiveImportModal from 'InteractiveImport/InteractiveImportModal';
|
import InteractiveImportModal from 'InteractiveImport/InteractiveImportModal';
|
||||||
import NoMovie from 'Movie/NoMovie';
|
import NoMovie from 'Movie/NoMovie';
|
||||||
import { executeCommand } from 'Store/Actions/commandActions';
|
import { executeCommand } from 'Store/Actions/commandActions';
|
||||||
import { fetchMovies } from 'Store/Actions/movieActions';
|
|
||||||
import {
|
import {
|
||||||
setMovieFilter,
|
setMovieFilter,
|
||||||
setMovieSort,
|
setMovieSort,
|
||||||
@ -105,7 +104,6 @@ const MovieIndex = withScrollPosition((props: MovieIndexProps) => {
|
|||||||
const [isSelectMode, setIsSelectMode] = useState(false);
|
const [isSelectMode, setIsSelectMode] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dispatch(fetchMovies());
|
|
||||||
dispatch(fetchQueueDetails({ all: true }));
|
dispatch(fetchQueueDetails({ all: true }));
|
||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user