Skip to content

Commit

Permalink
roll back unintended change
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed Oct 15, 2024
1 parent 62a3c87 commit f8b716a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shared-data/js/helpers/orderRuntimeParameterRangeOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ export const orderRuntimeParameterRangeOptions = (
choices: Choice[]
): string => {
// when this function is called, the array length is always 2
console.log({ choices })
if (choices.length > 2) {
console.error(`expected to have length 2 but has length ${choices.length}`)
return ''
}
const displayNames = choices.map(choice => choice.displayName)
const displayNames = [choices[0].displayName, choices[1].displayName]
if (isNumeric(displayNames[0])) {
return displayNames
.sort((a, b) => {
Expand Down

0 comments on commit f8b716a

Please sign in to comment.