don't assume there is at least 1 tile before loading at top
it can happen that all tiles are not renderable, and we should just keep calling loadAtTop
This commit is contained in:
parent
711b5be07f
commit
b83613924c
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ export class TimelineViewModel extends ViewModel {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
const firstTile = this._tiles.getFirst();
|
const firstTile = this._tiles.getFirst();
|
||||||
if (firstTile.shape === "gap") {
|
if (firstTile?.shape === "gap") {
|
||||||
return await firstTile.fill();
|
return await firstTile.fill();
|
||||||
} else {
|
} else {
|
||||||
const topReached = await this._timeline.loadAtTop(10);
|
const topReached = await this._timeline.loadAtTop(10);
|
||||||
|
|
Reference in a new issue