Project

General

Profile

« Previous | Next » 

Revision 870d4598

Added by Ondřej Ezr over 5 years ago

Fixes #2113 - VMware filter datastores

View differences:

webpack/assets/javascripts/react_app/redux/actions/common/index.js
successAction,
failedAction,
url,
item,
item = {},
}) => {
dispatch({ type: requestAction, payload: item });
return API.get(url)
return API.get(url, item.headers || {}, item.params || {})
.then(({ data }) =>
dispatch({ type: successAction, payload: { ...item, ...data } })
)

Also available in: Unified diff