Fixed: Don't Show NoArtist on Calendar if Artists are Loading

This commit is contained in:
Qstick 2020-06-25 21:53:34 -04:00
parent 3e937bd8e5
commit 2639374243
3 changed files with 25 additions and 6 deletions

View file

@ -5,10 +5,14 @@ function createArtistCountSelector() {
return createSelector(
createAllArtistSelector(),
(state) => state.artist.error,
(artists, error) => {
(state) => state.artist.isFetching,
(state) => state.artist.isPopulated,
(artists, error, isFetching, isPopulated) => {
return {
count: artists.length,
error
error,
isFetching,
isPopulated
};
}
);