We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d85e0c + bb8ff52 commit 3fe2b5cCopy full SHA for 3fe2b5c
1 file changed
frontend/src/js/app.js
@@ -67,12 +67,13 @@ function init() {
67
});
68
69
const moderateForm = document.getElementById('moderate-form');
70
+ const moderateBaseAction = moderateForm ? moderateForm.getAttribute('action') : null;
71
document.querySelectorAll('.moderate-button').forEach((btn) => {
72
btn.addEventListener('click', () => {
73
if (moderateForm) {
74
moderateForm.setAttribute(
75
'action',
- `${moderateForm.getAttribute('action')}${btn.id}/rejected`,
76
+ `${moderateBaseAction}${btn.id}/rejected`,
77
);
78
}
79
0 commit comments