Skip to content

Commit

Permalink
fixed rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
alinvetian committed Jul 22, 2024
1 parent 60b578e commit d65a392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/react/containers/UploadFiles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export default function UploadFiles({
displayAriaMsg('Your files were added and are pending upload.');
// TODO: make a function?; future: unify adding file attributes
const newFiles = files.map((file, index) => {
file.id = `pending${timestamp + index/1000}`;
file.id = `pending${timestamp + index / 1000}`;
file.sanitized_name = sanitize(file.name);
file.status = 'Pending';
file.url = null;
Expand Down Expand Up @@ -338,7 +338,7 @@ export default function UploadFiles({
},
).then((response) => {
const {new_file} = response.data;
setChosenFiles((cf) => cf.map((c, i) => {
setChosenFiles((cf) => cf.map((c) => {
if (c.name === new_file.original_filename) {
c.id = new_file.id;
c.sanitized_name = new_file.upload_file_name;
Expand Down

0 comments on commit d65a392

Please sign in to comment.