Skip to content

Commit

Permalink
refactor: removed unnecessary brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujanadh committed May 8, 2024
1 parent ab98984 commit 429f7db
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions src/frontend/src/components/ProjectSubmissions/SubmissionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,12 @@ const SubmissionsTable = ({ toggleView }) => {
}, []);

useEffect(() => {
{
dispatch(
SubmissionTableService(`${import.meta.env.VITE_API_URL}/submission/submission_table/${projectId}`, {
page: paginationPage,
...filter,
}),
);
}
dispatch(
SubmissionTableService(`${import.meta.env.VITE_API_URL}/submission/submission_table/${projectId}`, {
page: paginationPage,
...filter,
}),
);
}, [filter, paginationPage]);

useEffect(() => {
Expand All @@ -120,14 +118,12 @@ const SubmissionsTable = ({ toggleView }) => {
SubmissionFormFieldsService(`${import.meta.env.VITE_API_URL}/submission/submission_form_fields/${projectId}`),
);
dispatch(SubmissionActions.SetSubmissionTableRefreshing(true));
{
dispatch(
SubmissionTableService(`${import.meta.env.VITE_API_URL}/submission/submission_table/${projectId}`, {
page: paginationPage,
...filter,
}),
);
}
dispatch(
SubmissionTableService(`${import.meta.env.VITE_API_URL}/submission/submission_table/${projectId}`, {
page: paginationPage,
...filter,
}),
);
};

useEffect(() => {
Expand Down

0 comments on commit 429f7db

Please sign in to comment.