Skip to content

Commit bc63562

Browse files
committed
rename repoLink to curPageLink
1 parent 5aa7c75 commit bc63562

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/features/comp/LabelEdit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export function initCompLabelEdit(pageSelector: string) {
4747
elModal.toggleAttribute('data-need-warn-exclusive', !elExclusiveInput.checked && numIssues > 0);
4848
elModal.querySelector('.header').textContent = isEdit ? elModal.getAttribute('data-text-edit-label') : elModal.getAttribute('data-text-new-label');
4949

50-
const repoLink = elModal.getAttribute('data-current-page-link');
51-
form.action = isEdit ? `${repoLink}/edit` : `${repoLink}/new`;
50+
const curPageLink = elModal.getAttribute('data-current-page-link');
51+
form.action = isEdit ? `${curPageLink}/edit` : `${curPageLink}/new`;
5252
toggleElem(elIsArchivedField, isEdit);
5353
syncModalUi();
5454
fomanticQuery(elModal).modal({

0 commit comments

Comments
 (0)