diff --git a/client/src/components/Submissions/Submissions.jsx b/client/src/components/Submissions/Submissions.jsx index f74c0bef5..59eca7300 100644 --- a/client/src/components/Submissions/Submissions.jsx +++ b/client/src/components/Submissions/Submissions.jsx @@ -19,8 +19,7 @@ export const SubmissionsUpload = () => { }; const { data: allSystems } = useSystems(); - let submissionSystem = allSystems.find((s) => s.type === 'submission'); - submissionSystem = allSystems.find((s) => s.name === 'My Data (Work)'); + const submissionSystem = allSystems.find((s) => s.type === 'submission'); const uploadPath = ''; const { status, upload } = useUpload(); @@ -125,7 +124,7 @@ export const SubmissionsUpload = () => { const Submissions = () => { const getSubmitterRole = async () => { - let response = await fetchUtil({ + const response = await fetchUtil({ url: '/submissions/check-submitter-role/', }); return response; diff --git a/client/src/components/Workbench/Workbench.jsx b/client/src/components/Workbench/Workbench.jsx index daedc35e7..f71055a1a 100644 --- a/client/src/components/Workbench/Workbench.jsx +++ b/client/src/components/Workbench/Workbench.jsx @@ -75,6 +75,7 @@ function Workbench() { dispatch({ type: 'PROJECTS_GET_LISTING' }); } }, [setupComplete]); + return (
diff --git a/client/src/redux/sagas/datafiles.sagas.js b/client/src/redux/sagas/datafiles.sagas.js index 5d983dcec..804e911b5 100644 --- a/client/src/redux/sagas/datafiles.sagas.js +++ b/client/src/redux/sagas/datafiles.sagas.js @@ -496,6 +496,7 @@ export async function uploadFileUtil(api, scheme, system, path, file) { const responseText = await request.text(); throw new Error(responseText); } + throw new Error(request.status); } return request; }