Skip to content

Commit 62bfc32

Browse files
committed
label array items are objects
1 parent 0476553 commit 62bfc32

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/actions-scripts/enterprise-algolia-label.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ if (!(labelsArray && labelsArray.length)) {
1818
}
1919

2020
// Find the relevant label
21-
const algoliaLabel = labelsArray.find(label => label.startsWith(labelText))
21+
const algoliaLabel = labelsArray
22+
.map(label => label.name)
23+
.find(label => label.startsWith(labelText))
2224

2325
// Exit early if no relevant label is found
2426
if (!algoliaLabel) {

0 commit comments

Comments
 (0)