Skip to content

Commit

Permalink
fix: ts
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Aug 24, 2023
1 parent c0c54c1 commit ddd816e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/rjsf/SelectWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function SelectWidget<
if (!inputValue) return enumOptions.map(({ value }) => value)

const results = engine.search(inputValue)
results.sort((a, b) => a.score - b.score)
results.sort((a, b) => a.score! - b.score!)
return results.map(({ item }) => item.value)
}
}, [enumOptions])
Expand Down

0 comments on commit ddd816e

Please sign in to comment.