mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 06:35:32 +03:00
parent
23eb4acc37
commit
6fb41209cd
@ -233,7 +233,7 @@ export class ShipSearch extends Component {
|
||||
let idx = suggestions.findIndex(s => s === this.state.selected);
|
||||
|
||||
idx = backward ? idx - 1 : idx + 1;
|
||||
idx = idx % suggestions.length;
|
||||
idx = idx % Math.min(suggestions.length, 5);
|
||||
if (idx < 0) {
|
||||
idx = suggestions.length - 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user