refac: note editor model selection

This commit is contained in:
Tim Jaeryang Baek
2025-07-13 04:53:27 +04:00
parent d4dfece4f9
commit bd44ab64d0
2 changed files with 4 additions and 8 deletions

View File

@@ -778,6 +778,10 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
}
}
if (!selectedModelId) {
selectedModelId = $models.at(0)?.id || '';
}
const dropzoneElement = document.getElementById('note-editor');
dropzoneElement?.addEventListener('dragover', onDragOver);