Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
fixed "populating the comments after delete
  • Loading branch information
Dou11112 authored Dec 6, 2023
1 parent 4fef4da commit 0af83d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,9 @@ <h2>Delete Comment</h2>
document.querySelector('[name="routeId1"]').value = '';
document.querySelector('[name="category1"]').value = '';

// load the comments again
fetchUserComments(userEmail);

})
.catch((error) => {
console.error('Error:', error);
Expand Down Expand Up @@ -1248,4 +1251,4 @@ <h2>Delete Comment</h2>
<script src="{{ url_for('static', filename='js/ui.js') }}" type="module"></script> -->

</body>
</html>
</html>

0 comments on commit 0af83d6

Please sign in to comment.