diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-26 19:00:53 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-26 19:00:53 +0200 |
commit | c707b3af917af40a9a06639d217937bfecef9ecd (patch) | |
tree | ddef5efa34f08c48c496fc06b03f00825048ab20 /components/tweaks.tsx | |
parent | 654e71bfacc273a964a5b620e98bd504cef85460 (diff) |
fixed a single typescript error
Diffstat (limited to 'components/tweaks.tsx')
-rw-r--r-- | components/tweaks.tsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/components/tweaks.tsx b/components/tweaks.tsx index 43a8ecf..90b2aea 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -407,13 +407,11 @@ export const Tweaks = (props: TweakProps) => { setPhysics({ ...physics, algorithmName: v.target.value }) }} > - {physics.algorithmOptions.map((opt: string, i: number) => { - return ( - <option key={i} value={opt}> - {opt} - </option> - ) - })} + {physics.algorithmOptions.map((opt: string) => ( + <option key={opt} value={opt}> + {opt} + </option> + ))} </Select> {/* <DropDownMenu displayValue={physics.algorithmName} |