From 1aa746bea1022941fe13f9818452e6861122dfe4 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 15 Mar 2024 23:28:18 +0200 Subject: [PATCH] Ensure authors are populated in PageConnector --- frontend/src/Components/Page/PageConnector.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/Components/Page/PageConnector.js b/frontend/src/Components/Page/PageConnector.js index 4f5ace521..5b2b59aae 100644 --- a/frontend/src/Components/Page/PageConnector.js +++ b/frontend/src/Components/Page/PageConnector.js @@ -51,6 +51,7 @@ const selectAppProps = createSelector( ); const selectIsPopulated = createSelector( + (state) => state.authors.isPopulated, (state) => state.customFilters.isPopulated, (state) => state.tags.isPopulated, (state) => state.settings.ui.isPopulated, @@ -62,6 +63,7 @@ const selectIsPopulated = createSelector( (state) => state.system.status.isPopulated, (state) => state.app.translations.isPopulated, ( + authorsIsPopulated, customFiltersIsPopulated, tagsIsPopulated, uiSettingsIsPopulated, @@ -74,6 +76,7 @@ const selectIsPopulated = createSelector( translationsIsPopulated ) => { return ( + authorsIsPopulated && customFiltersIsPopulated && tagsIsPopulated && uiSettingsIsPopulated && @@ -89,6 +92,7 @@ const selectIsPopulated = createSelector( ); const selectErrors = createSelector( + (state) => state.authors.error, (state) => state.customFilters.error, (state) => state.tags.error, (state) => state.settings.ui.error, @@ -100,6 +104,7 @@ const selectErrors = createSelector( (state) => state.system.status.error, (state) => state.app.translations.error, ( + authorsError, customFiltersError, tagsError, uiSettingsError, @@ -112,6 +117,7 @@ const selectErrors = createSelector( translationsError ) => { const hasError = !!( + authorsError || customFiltersError || tagsError || uiSettingsError ||