mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-24 07:10:21 -05:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user