Skip to content

Commit

Permalink
Rename const to reduce confusion on 'action' to be dispatched.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Feb 27, 2023
1 parent a0ec90c commit ad8e08c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const applyConfig = (config) => {
config.settings.asyncPropsExtenders = [
...(config.settings.asyncPropsExtenders || []),
{
path: '',
path: '/',
extend: (dispatchActions) => {
const action = {
key: 'querystringindexes',
Expand All @@ -87,9 +87,9 @@ const applyConfig = (config) => {
if (state.querystring?.indexes?.Title) {
return;
}
const action = getQuerystring();
return store.dispatch(action).catch((e) => {
console.error('fetch of getQuerystring failed');
const myaction = getQuerystring();
return store.dispatch(myaction).catch((e) => {
console.error('Fetch of getQuerystring failed');
});
},
};
Expand Down

0 comments on commit ad8e08c

Please sign in to comment.