Skip to content

Commit 263c70b

Browse files
author
Alan Choi
authored
fix ticketNumber displayed as ? in PR template
Declaring `ticketNumber` again in `if` block prevents `ticketNumber` from getting updated.
1 parent d4cfd87 commit 263c70b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function handlePrCreatePage() {
203203
if (titleMatch) {
204204
// Found a title, fetch some info from the ticket
205205
// Get the last one in the list.
206-
let ticketNumber = titleMatch[titleMatch.length - 1];
206+
ticketNumber = titleMatch[titleMatch.length - 1];
207207
ticketUrl = 'https://'+jiraUrl+'/browse/' + ticketNumber;
208208

209209
//Load up data from jira

0 commit comments

Comments
 (0)