fix(BulkManager): streamline cleanupBulkBaseModelModal to clear base model select options

This commit is contained in:
Will Miao
2025-09-05 21:00:54 +08:00
parent 16840c321d
commit 1f91a3da8e

View File

@@ -959,19 +959,9 @@ export class BulkManager {
* Cleanup bulk base model modal * Cleanup bulk base model modal
*/ */
cleanupBulkBaseModelModal() { cleanupBulkBaseModelModal() {
const modal = document.getElementById('bulkBaseModelModal'); const select = document.getElementById('bulkBaseModelSelect');
if (modal) { if (select) {
// Clear existing tags select.innerHTML = '';
const tagsContainer = modal.querySelector('.bulk-tags');
if (tagsContainer) {
tagsContainer.innerHTML = '';
}
// Clear dropdown
const dropdown = modal.querySelector('.bulk-suggestions-dropdown');
if (dropdown) {
dropdown.innerHTML = '';
}
} }
} }