From 03be60b3b0c59b07745ecaf2c274dff6cddd48f8 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 27 Sep 2017 12:23:01 +0100 Subject: [PATCH] [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. --- Nibriboard/ClientFiles/ChunkCache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nibriboard/ClientFiles/ChunkCache.js b/Nibriboard/ClientFiles/ChunkCache.js index 5ae0bbb..692429a 100644 --- a/Nibriboard/ClientFiles/ChunkCache.js +++ b/Nibriboard/ClientFiles/ChunkCache.js @@ -43,7 +43,7 @@ class ChunkCache let lineFragments = []; let currentChunk = this.fetchChunk(startingChunkRef); - while(currentChunk != null) + while(currentChunk instanceof Chunk) { let nextLineFragment = currentChunk.getLineById(lineId); if(nextLineFragment == null)