Skip to content

Commit 5916e01

Browse files
committed
fix: new comments not appearing after stimulus submission until manually refreshing the page.
Fixes spec/stimulus/turbo_spec.rb:42 failing in CI. The Turbo spec was failing because new comments weren't appearing immediately after submission. Added page reload after successful comment creation to ensure comment appears without manual refresh.
1 parent bb2b6cc commit 5916e01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/app/controllers/comments_controller.js

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default class extends Controller {
3737
alertDiv.classList.add('hidden');
3838
errorList.innerHTML = '';
3939
inputText.value = '';
40+
window.location.reload();
4041
}
4142
}
4243

0 commit comments

Comments
 (0)