From ad8e08cb8194179da065d42f56a2dca616c11c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katja=20Su=CC=88ss?= Date: Mon, 27 Feb 2023 12:32:47 +0100 Subject: [PATCH] Rename const to reduce confusion on 'action' to be dispatched. --- src/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index ab43691a..cf3ffba6 100644 --- a/src/index.js +++ b/src/index.js @@ -78,7 +78,7 @@ const applyConfig = (config) => { config.settings.asyncPropsExtenders = [ ...(config.settings.asyncPropsExtenders || []), { - path: '', + path: '/', extend: (dispatchActions) => { const action = { key: 'querystringindexes', @@ -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'); }); }, };