Skip to content

Commit

Permalink
Fix for delete not working
Browse files Browse the repository at this point in the history
  • Loading branch information
mswatosh committed Nov 28, 2023
1 parent a25e02e commit aa06b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/webapp/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function remove(id) {
var request = new XMLHttpRequest();

request.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
if (this.readyState == 4 && this.status == 204) {
document.getElementById(id).remove();
refreshDocDisplay()
}
Expand Down

0 comments on commit aa06b74

Please sign in to comment.