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 (