Skip to content

Commit 690f2b2

Browse files
committed
remove unnecessary page reload and use existing Turbo Frame refresh mechanism (the hidden refresh button)
1 parent 2a896e8 commit 690f2b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/app/controllers/comments_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class extends Controller {
3737
alertDiv.classList.add('hidden');
3838
errorList.innerHTML = '';
3939
inputText.value = '';
40-
window.location.reload();
40+
this.refreshCommentList();
4141
}
4242
}
4343

0 commit comments

Comments
 (0)