Skip to content

Commit 5e1ae3c

Browse files
authored
Bug fix in api request (#3493)
Upload was coded to pull URI from redux store, but the action expected a parameter.
1 parent 32c6c5c commit 5e1ae3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dashboard/src/actions/relayActions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { getDatasets } from "./overviewActions";
77
import { showToast } from "./toastActions";
88
import { uriTemplate } from "../utils/helper";
99

10-
export const uploadFile = (fileURI) => async (dispatch, getState) => {
10+
export const uploadFile = () => async (dispatch, getState) => {
1111
try {
1212
dispatch({ type: TYPES.LOADING });
1313
const endpoints = getState().apiEndpoint.endpoints;
14-
14+
const fileURI = getState().overview.relayInput;
1515
const uri = uriTemplate(endpoints, "relay", { uri: fileURI });
1616
const response = await API.post(uri, null, null);
1717
if (response.status >= 200 && response.status < 300) {

0 commit comments

Comments
 (0)