diff --git a/CHANGELOG.md b/CHANGELOG.md index 91346b860b7..2f26581f374 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ changes in the following format: PR #1234*** - Fix examiner site display (PR #8967) - bvl_feedback updates in real-time (PR #8966) - DoB and DoD format respected in candidate parameters (PR #9001) +- Fix delete file in upload (PR #9181) ## LORIS 25.0 (Release Date: ????-??-??) ### Core diff --git a/modules/publication/jsx/projectFields.js b/modules/publication/jsx/projectFields.js index f7ed8569418..2f99ce20dc6 100644 --- a/modules/publication/jsx/projectFields.js +++ b/modules/publication/jsx/projectFields.js @@ -163,8 +163,8 @@ class ProjectFormFields extends React.Component { showCancelButton: true, confirmButtonText: 'Yes, I am sure!', cancelButtonText: 'No, cancel it!', - }).then(function(willDelete) { - if (willDelete) { + }).then((result) => { + if (result.value) { let url = loris.BaseURL + '/publication/ajax/FileDelete.php?uploadID=' + uploadID;