Skip to content

Commit

Permalink
remove unnecessary page reload and use existing Turbo Frame refresh m…
Browse files Browse the repository at this point in the history
…echanism (the hidden refresh button)
  • Loading branch information
ihab4real committed Dec 16, 2024
1 parent 2a896e8 commit 690f2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/controllers/comments_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class extends Controller {
alertDiv.classList.add('hidden');
errorList.innerHTML = '';
inputText.value = '';
window.location.reload();
this.refreshCommentList();
}
}

Expand Down

0 comments on commit 690f2b2

Please sign in to comment.