From 1f91a3da8edddc5167ff7b774836d81d2dfb957b Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Fri, 5 Sep 2025 21:00:54 +0800 Subject: [PATCH] fix(BulkManager): streamline cleanupBulkBaseModelModal to clear base model select options --- static/js/managers/BulkManager.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/static/js/managers/BulkManager.js b/static/js/managers/BulkManager.js index e3f67235..bf23a7d7 100644 --- a/static/js/managers/BulkManager.js +++ b/static/js/managers/BulkManager.js @@ -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 = ''; } }