Skip to content

Commit

Permalink
More Yarn nit-picking
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea committed Mar 31, 2023
1 parent 559d8dc commit e56b3e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/assets/javascripts/edit_work_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ $(() => {
});

// Handles undo delete of files
// eslint-disable no-param-reassign
$(document).on('click', '.undo-delete-file', (el) => {
const filename = $(el.target).data('filename');
// Mark the file as not deleted in the UI.
Expand All @@ -436,12 +435,11 @@ $(() => {
// Remove the filename from the list of values we submit to the server.
$('.deleted-file-tracker').each((_index, element) => {
if (element.value === filename) {
element.value = '';
element.value = ''; // eslint-disable-line no-param-reassign
}
});
return false;
});
// eslint-enable no-param-reassign

if ($('.creator-data').length === 0) {
// Add an empty creator for the use to fill it out
Expand Down

0 comments on commit e56b3e2

Please sign in to comment.