We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8486f commit 80133abCopy full SHA for 80133ab
src/loaders/OmeZarrLoader.ts
@@ -454,6 +454,10 @@ class OMEZarrLoader extends ThreadableVolumeLoader {
454
/** Reads a list of chunk keys requested by a `loadVolumeData` call and sets up appropriate prefetch requests. */
455
private beginPrefetch(keys: ZarrChunkFetchInfo[], scaleLevel: number): void {
456
// Convert keys to arrays of coords
457
+ if (keys.length === 0) {
458
+ return;
459
+ }
460
+
461
const chunkCoords = keys.map(({ sourceIdx, key }) => {
462
const numDims = getDimensionCount(this.sources[sourceIdx].axesTCZYX);
463
const coordsInDimensionOrder = key
0 commit comments