diff --git a/packages/strapi-generate-plugin/files/admin/src/containers/App/selectors.js b/packages/strapi-generate-plugin/files/admin/src/containers/App/selectors.js index f76ce3f0ef..66ab2b4e3f 100644 --- a/packages/strapi-generate-plugin/files/admin/src/containers/App/selectors.js +++ b/packages/strapi-generate-plugin/files/admin/src/containers/App/selectors.js @@ -5,6 +5,6 @@ * Direct selector to the list state domain */ -// const selectGlobalDomain = () => state => state.get(`${pluginId}-global`); +// const selectGlobalDomain = () => state => state.get(`${pluginId}_global`); export {}; diff --git a/packages/strapi-generate-plugin/files/admin/src/containers/ExamplePage/selectors.js b/packages/strapi-generate-plugin/files/admin/src/containers/ExamplePage/selectors.js index 1ddaf47bb9..e0a8cccbe9 100644 --- a/packages/strapi-generate-plugin/files/admin/src/containers/ExamplePage/selectors.js +++ b/packages/strapi-generate-plugin/files/admin/src/containers/ExamplePage/selectors.js @@ -4,16 +4,22 @@ import pluginId from 'pluginId'; /** * Direct selector to the examplePage state domain */ -const selectExamplePageDomain = () => state => state.get(`${pluginId}-examplePage`); +const selectExamplePageDomain = () => state => state.get(`${pluginId}_examplePage`); /** * Default selector used by HomePage */ const makeSelectLoading = () => - createSelector(selectExamplePageDomain(), substate => substate.get('loading')); + createSelector( + selectExamplePageDomain(), + substate => substate.get('loading'), + ); const makeSelectData = () => - createSelector(selectExamplePageDomain(), substate => substate.get('data')); + createSelector( + selectExamplePageDomain(), + substate => substate.get('data'), + ); export { makeSelectLoading, makeSelectData }; diff --git a/packages/strapi-generate-plugin/files/admin/src/containers/HomePage/selectors.js b/packages/strapi-generate-plugin/files/admin/src/containers/HomePage/selectors.js index d51dccbae7..7dddab17d1 100644 --- a/packages/strapi-generate-plugin/files/admin/src/containers/HomePage/selectors.js +++ b/packages/strapi-generate-plugin/files/admin/src/containers/HomePage/selectors.js @@ -3,15 +3,16 @@ import pluginId from 'pluginId'; /** * Direct selector to the homePage state domain */ -const selectHomePageDomain = () => state => state.get(`${pluginId}-homePage`); +const selectHomePageDomain = () => state => state.get(`${pluginId}_homePage`); /** * Default selector used by HomePage */ -const selectHomePage = () => createSelector( - selectHomePageDomain(), - (substate) => substate.toJS(), -); +const selectHomePage = () => + createSelector( + selectHomePageDomain(), + substate => substate.toJS(), + ); export default selectHomePage;