Skip to content

Commit

Permalink
remove commas added by pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shincap8 committed Sep 5, 2024
1 parent f504f32 commit ad47c38
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions frontends/web/src/containers/SubmitInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ const SubmitInterface = (props) => {
props.history.push(
"/login?&src=" +
encodeURIComponent(
`/tasks/${params.taskId}/submit_${state.submission_type}`,
),
`/tasks/${params.taskId}/submit_${state.submission_type}`
)
);
}

Expand Down Expand Up @@ -121,7 +121,7 @@ const SubmitInterface = (props) => {
return false;
}
const answer = await get(
`/task/allow_update_dynalab_submissions/${task_id}/${user_id}`,
`/task/allow_update_dynalab_submissions/${task_id}/${user_id}`
);
if (answer) {
return true;
Expand Down Expand Up @@ -154,7 +154,7 @@ const SubmitInterface = (props) => {

const handleSubmit = async (
values,
{ setFieldValue, setSubmitting, resetForm, setFieldError },
{ setFieldValue, setSubmitting, resetForm, setFieldError }
) => {
const files = {};
for (const dataset of state.datasets) {
Expand All @@ -166,7 +166,7 @@ const SubmitInterface = (props) => {
const result = await context.api.uploadPredictions(
state.task.id,
values.modelName,
files,
files
);
values.modelName = "";
for (const [fname, _] of Object.entries(files)) {
Expand All @@ -179,7 +179,7 @@ const SubmitInterface = (props) => {
console.log(error);
setFieldError(
"accept",
"Predictions could not be added (" + error.error + ")",
"Predictions could not be added (" + error.error + ")"
);
setSubmitting(false);
}
Expand All @@ -188,8 +188,8 @@ const SubmitInterface = (props) => {
props.history.push(
"/login?&src=" +
encodeURIComponent(
`/tasks/${props.match.params.taskId}/submit_${state.submission_type}`,
),
`/tasks/${props.match.params.taskId}/submit_${state.submission_type}`
)
);
} else {
context.api.uploadTrainFiles(state.task.id, values.modelName, files);
Expand All @@ -201,7 +201,7 @@ const SubmitInterface = (props) => {
setSubmitting(false);
setFieldError(
"accept",
"Thank you. You will soon receive an email about the status of your submission.",
"Thank you. You will soon receive an email about the status of your submission."
);
}
}
Expand Down Expand Up @@ -298,7 +298,7 @@ const SubmitInterface = (props) => {
...prevState,
showModals: state.showModals.map(
(obj, obj_index) =>
index === obj_index ? !obj : obj,
index === obj_index ? !obj : obj
),
}))
}
Expand Down Expand Up @@ -333,7 +333,7 @@ const SubmitInterface = (props) => {
...prevState,
showModals: state.showModals.map(
(obj, obj_index) =>
index === obj_index ? !obj : obj,
index === obj_index ? !obj : obj
),
}))
}
Expand Down

0 comments on commit ad47c38

Please sign in to comment.