зеркало из https://github.com/mozilla/normandy.git
Merge pull request #775 from rehandalal/fix-typo
Fix typo in fetchAction
This commit is contained in:
Коммит
54b8a106fb
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче