Fixed: Don't Show NoMovie on Cal if Movies are Loading

Fixes #4499
This commit is contained in:
Qstick
2020-06-25 21:53:34 -04:00
parent 8c84047a56
commit c0bb1392e2
3 changed files with 25 additions and 5 deletions

View File

@@ -5,10 +5,14 @@ function createMovieCountSelector() {
return createSelector(
createAllMoviesSelector(),
(state) => state.movies.error,
(movies, error) => {
(state) => state.movies.isFetching,
(state) => state.movies.isPopulated,
(movies, error, isFetching, isPopulated) => {
return {
count: movies.length,
error
error,
isFetching,
isPopulated
};
}
);