Skip to content

Commit

Permalink
fix regression to quick elem re-focus
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy authored Jan 27, 2025
1 parent 91ef3cc commit ff36f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/Singleplayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default ({
if (worldName) {
worldRefs.current[worldName]?.focus()
}
}, [selectedRow, worldData])
}, [selectedRow, worldData?.[selectedRow]?.name])

Check failure on line 158 in src/react/Singleplayer.tsx

View workflow job for this annotation

GitHub Actions / build-and-deploy

Type 'undefined' cannot be used as an index type.

const onRowSelectHandler = (name: string, index: number) => {
onRowSelect?.(name, index)
Expand Down

0 comments on commit ff36f75

Please sign in to comment.