From a3759c7379da2fbbf3923b1b08c7eb03e521a455 Mon Sep 17 00:00:00 2001 From: Rehan Dalal Date: Tue, 23 May 2017 12:46:08 -0400 Subject: [PATCH] Fix typo in fetchAction --- recipe-server/client/control/state/actions/actions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe-server/client/control/state/actions/actions.js b/recipe-server/client/control/state/actions/actions.js index 43f52869..43908db0 100644 --- a/recipe-server/client/control/state/actions/actions.js +++ b/recipe-server/client/control/state/actions/actions.js @@ -7,10 +7,10 @@ import { } from '../requests/actions'; -export function fetchAction(name) { +export function fetchAction(pk) { return async dispatch => { - const requestId = `fetch-action-${name}`; - const action = await dispatch(makeApiRequest(requestId, `v2/action/${name}/`)); + const requestId = `fetch-action-${pk}`; + const action = await dispatch(makeApiRequest(requestId, `v2/action/${pk}/`)); dispatch({ type: ACTION_RECEIVE,