diff --git a/templates/repo/branch_dropdown.tmpl b/templates/repo/branch_dropdown.tmpl
index 6efed3427f..f679b8744b 100644
--- a/templates/repo/branch_dropdown.tmpl
+++ b/templates/repo/branch_dropdown.tmpl
@@ -14,7 +14,8 @@
Search "repo/branch_dropdown" in the template directory to find all occurrences.
*/}}
-
{
createApp(RepoBranchTagSelector, {elRoot}).mount(elRoot);
- }
+ });
}
export function initBranchSelectorTabs() {
@@ -42,7 +43,7 @@ export function initRepository() {
const pageContent = document.querySelector('.page-content.repository');
if (!pageContent) return;
- initRepoBranchTagSelector('.js-branch-tag-selector');
+ initRepoBranchTagSelector();
initRepoCommentFormAndSidebar();
// Labels