From f88d522d1f1b982cb0c6f5adcd25870ab61be3b1 Mon Sep 17 00:00:00 2001 From: wwwDayDream <13383838+wwwDayDream@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:28:09 -0500 Subject: [PATCH] Forgot child --- .github/workflows/auto-pr-changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-pr-changelog.yml b/.github/workflows/auto-pr-changelog.yml index cfa931a..6c3f0d5 100644 --- a/.github/workflows/auto-pr-changelog.yml +++ b/.github/workflows/auto-pr-changelog.yml @@ -182,7 +182,7 @@ jobs: potentialHead.children.push(potentialEntry); } } else { - const potentialEntryIdx = potentialHead.findIndex(item => typeof(item) == typeof('') && item == potentialEntry); + const potentialEntryIdx = potentialHead.children.findIndex(item => typeof(item) == typeof('') && item == potentialEntry); if (potentialEntryIdx >= 0) { potentialHead.children.splice(potentialEntryidx, 1) }