Fix wrong array being returned for highlight and full video segments

This commit is contained in:
Ajay
2022-01-06 15:17:01 -05:00
parent 75cad434b6
commit 77565d7eda

View File

@@ -204,7 +204,7 @@ function getWeightedRandomChoice<T extends VotableObject>(choices: T[], amountOf
// Nothing to filter for // Nothing to filter for
if (amountOfChoices >= choicesWithWeights.length) { if (amountOfChoices >= choicesWithWeights.length) {
return choices; return [...forceIncludedChoices, ...filteredChoices];
} }
//iterate and find amountOfChoices choices //iterate and find amountOfChoices choices