Skip to content

Commit

Permalink
feat: add file store ui
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Aug 3, 2022
1 parent e658e6b commit 920e6de
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/store/actions/climateWarehouseActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
vintagesResponseStub,
stagingDataResponseStub,
auditResponseStub,
fileListResponseStub,
} from '../../mocks';

import {
Expand Down Expand Up @@ -728,19 +727,13 @@ export const getFileList = () => {
try {
dispatch(activateProgressIndicator);

// const url = `${constants.API_HOST}/staging`;
// const payload = {
// method: 'PUT',
// headers: {
// 'Content-Type': 'application/json',
// },
// body: JSON.stringify({ uuid, data }),
// };
// const response = await fetchWrapper(url, payload);
const response = { ok: true };
const response = await fetchWrapper(
`${constants.API_HOST}/filestore/get_file_list`,
);

if (response.ok) {
const results = fileListResponseStub;
const results = await response.json();
// const results = fileListResponseStub;
dispatch(setConnectionCheck(true));
dispatch({
type: actions.GET_FILE_LIST,
Expand Down

0 comments on commit 920e6de

Please sign in to comment.