Skip to content

Commit

Permalink
Properly use useAppDispatch hook
Browse files Browse the repository at this point in the history
Function call parentheses were accidentally removed in
3e77a0a.

The code is only invoked during runtime when accessing the narrative
editor, which was not tested before merging that change.
  • Loading branch information
victorlin committed Nov 16, 2023
1 parent 4e2de85 commit d1d7814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/narrativeEditor/useDatasetFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down

0 comments on commit d1d7814

Please sign in to comment.