From 77565d7eda9ef8f10214555436391073f82bd692 Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 6 Jan 2022 15:17:01 -0500 Subject: [PATCH] Fix wrong array being returned for highlight and full video segments --- src/routes/getSkipSegments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getSkipSegments.ts b/src/routes/getSkipSegments.ts index 827b3c6..91274fe 100644 --- a/src/routes/getSkipSegments.ts +++ b/src/routes/getSkipSegments.ts @@ -204,7 +204,7 @@ function getWeightedRandomChoice(choices: T[], amountOf // Nothing to filter for if (amountOfChoices >= choicesWithWeights.length) { - return choices; + return [...forceIncludedChoices, ...filteredChoices]; } //iterate and find amountOfChoices choices