We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32c6c5c commit 5e1ae3cCopy full SHA for 5e1ae3c
dashboard/src/actions/relayActions.js
@@ -7,11 +7,11 @@ import { getDatasets } from "./overviewActions";
7
import { showToast } from "./toastActions";
8
import { uriTemplate } from "../utils/helper";
9
10
-export const uploadFile = (fileURI) => async (dispatch, getState) => {
+export const uploadFile = () => async (dispatch, getState) => {
11
try {
12
dispatch({ type: TYPES.LOADING });
13
const endpoints = getState().apiEndpoint.endpoints;
14
-
+ const fileURI = getState().overview.relayInput;
15
const uri = uriTemplate(endpoints, "relay", { uri: fileURI });
16
const response = await API.post(uri, null, null);
17
if (response.status >= 200 && response.status < 300) {
0 commit comments