browser: assert preview queue length

Ensure all preview tiles array is equal length of preview queue
to be processed.

Change-Id: I37a8109a1d02d7dd761c9fbd36a7d0aa8102f7c3
Signed-off-by: Henry Castro <hcastro@collabora.com>
pull/8694/head
Henry Castro 2024-04-15 15:30:46 -04:00
parent 013b4c7d56
commit a80477a16c
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ L.Control.PartsPreview = L.Control.extend({
L.DomUtil.addClass(this._previewTiles[selectedPart], 'preview-img-currentpart');
this._onScroll(); // Load previews.
this._previewInitialized = true;
window.app.console.assert(this._previewTiles.length === this._map._previewQueue.length, 'PREVIEW: Wrong tiles queued : ' + parts);
}
else
{