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
*/
cleanupBulkBaseModelModal() {
const modal = document.getElementById('bulkBaseModelModal');
if (modal) {
// Clear existing tags
const tagsContainer = modal.querySelector('.bulk-tags');
if (tagsContainer) {
tagsContainer.innerHTML = '';
}
// Clear dropdown
const dropdown = modal.querySelector('.bulk-suggestions-dropdown');
if (dropdown) {
dropdown.innerHTML = '';
}
const select = document.getElementById('bulkBaseModelSelect');
if (select) {
select.innerHTML = '';
}
}