fix(dashboard): remove duplicate const notesEl declaration

Reuse the existing notesEl variable when syncing Toast UI Editor notes
into the hidden textarea on form submit, fixing SyntaxError:
redeclaration of const notesEl in the start timer submit handler.
This commit is contained in:
Dries Peeters
2026-02-17 20:16:11 +01:00
parent 94ed0ae7d7
commit 07794987af
-1
View File
@@ -1019,7 +1019,6 @@
}
// Sync Toast UI Editor notes into hidden textarea (programmatic submit does not fire submit event)
const notesEl = document.getElementById('startTimerNotes');
if (notesEl && window.dashboardNotesEditor && typeof window.dashboardNotesEditor.getMarkdown === 'function') {
try {
notesEl.value = window.dashboardNotesEditor.getMarkdown();