mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-08 05:51:47 -07:00
parent
0d7cd8009f
commit
8624ff5c6a
3 changed files with 94 additions and 27 deletions
|
@ -35,21 +35,25 @@ function createMapStateToProps() {
|
|||
(state) => state.app,
|
||||
createDimensionsSelector(),
|
||||
(artist, tags, settings, app, dimensions) => {
|
||||
const isPopulated = artist.isPopulated &&
|
||||
const isPopulated = (
|
||||
artist.isPopulated &&
|
||||
tags.isPopulated &&
|
||||
settings.qualityProfiles.isPopulated &&
|
||||
settings.languageProfiles.isPopulated &&
|
||||
settings.metadataProfiles.isPopulated &&
|
||||
settings.importLists.isPopulated &&
|
||||
settings.ui.isPopulated;
|
||||
settings.ui.isPopulated
|
||||
);
|
||||
|
||||
const hasError = !!artist.error ||
|
||||
!!tags.error ||
|
||||
!!settings.qualityProfiles.error ||
|
||||
!!settings.languageProfiles.error ||
|
||||
!!settings.metadataProfiles.error ||
|
||||
!!settings.importLists.error ||
|
||||
!!settings.ui.error;
|
||||
const hasError = !!(
|
||||
artist.error ||
|
||||
tags.error ||
|
||||
settings.qualityProfiles.error ||
|
||||
settings.languageProfiles.error ||
|
||||
settings.metadataProfiles.error ||
|
||||
settings.importLists.error ||
|
||||
settings.ui.error
|
||||
);
|
||||
|
||||
return {
|
||||
isPopulated,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue