tomoakley / freemeals.uk

MIT License
10 stars 10 forks source link

ensure selectedIndex isn't null before converting to a number #48

Closed tomoakley closed 3 years ago

tomoakley commented 3 years ago

setSelectedIndex was converting the payload to a number, but if selectedIndex was null was it was converting to 0, causing the first item to get selected whenever the SelectedPane was closed.