diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index 588c05990..34e885960 100644 --- a/web_src/js/components/RepoBranchTagSelector.vue +++ b/web_src/js/components/RepoBranchTagSelector.vue @@ -83,7 +83,7 @@ const sfc = { this.isViewBranch = false; this.$refs.dropdownRefName.textContent = item.name; if (this.setAction) { - $(`#${this.branchForm}`).attr('action', url); + document.getElementById(this.branchForm)?.setAttribute('action', url); } else { $(`#${this.branchForm} input[name="refURL"]`).val(url); }