Update index.js
This commit is contained in:
parent
69b3fdcf8e
commit
cde910f8b0
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -24,7 +24,7 @@ async function run() {
|
|||
let idx = -1;
|
||||
|
||||
if (labels.length > 0) {
|
||||
idx = labels.indexOf(issue => issue.name === name);
|
||||
idx = labels.findIndex(issue => issue.name === name);
|
||||
}
|
||||
|
||||
console.log({ idx });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue