1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

[client] Make fetchLineFragments while condition more restrictive.

Looks like the issue lies in the fact we don't have unique ids on a
per-line-fragment basis, so that's next up I guess.
This commit is contained in:
Starbeamrainbowlabs 2017-09-27 12:23:01 +01:00
parent c3952f0778
commit 03be60b3b0

View file

@ -43,7 +43,7 @@ class ChunkCache
let lineFragments = []; let lineFragments = [];
let currentChunk = this.fetchChunk(startingChunkRef); let currentChunk = this.fetchChunk(startingChunkRef);
while(currentChunk != null) while(currentChunk instanceof Chunk)
{ {
let nextLineFragment = currentChunk.getLineById(lineId); let nextLineFragment = currentChunk.getLineById(lineId);
if(nextLineFragment == null) if(nextLineFragment == null)