Fix potential divide by zero error
Thank you to KimJeongSun for bringing this up Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
This commit is contained in:
parent
0be82b32dd
commit
103ad807ee
|
@ -2415,7 +2415,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.starterSelectScrollBar.setPages(Math.ceil(this.filteredStarterContainers.length / 9));
|
this.starterSelectScrollBar.setPages(Math.max(Math.ceil(this.filteredStarterContainers.length / 9)), 1);
|
||||||
this.starterSelectScrollBar.setPage(0);
|
this.starterSelectScrollBar.setPage(0);
|
||||||
|
|
||||||
// sort
|
// sort
|
||||||
|
|
Loading…
Reference in New Issue