Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
evdokimovm committed Jun 8, 2022
1 parent 210d111 commit eeae34b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ async function findByIdThenPerform(e, callback) {

var index = files.findIndex(file => file.id == id)

return callback(e, files, index)
if (index > -1) {
return callback(e, files, index)
}
}

function activateButtons(e, id) {
Expand Down

0 comments on commit eeae34b

Please sign in to comment.