From d1d7814eb2091a30d919b155d1bbabffcf2f4cc3 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Thu, 16 Nov 2023 09:58:59 -0800 Subject: [PATCH] Properly use useAppDispatch hook Function call parentheses were accidentally removed in 3e77a0a0f572db0e4621d9dfc3614a7353311be2. The code is only invoked during runtime when accessing the narrative editor, which was not tested before merging that change. --- src/components/narrativeEditor/useDatasetFetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/narrativeEditor/useDatasetFetch.js b/src/components/narrativeEditor/useDatasetFetch.js index 9ce53c3e2..c85de38c4 100644 --- a/src/components/narrativeEditor/useDatasetFetch.js +++ b/src/components/narrativeEditor/useDatasetFetch.js @@ -14,7 +14,7 @@ import { FetchError } from "../../util/exceptions"; */ export function useDatasetFetch(datasets) { - const dispatchRedux = useAppDispatch; + const dispatchRedux = useAppDispatch(); const [datasetResponses, dispatchDatasetResponses] = useReducer( (state, action) => { if (action.reset) return {};