fix: additional check for stale tooltip

This commit is contained in:
ccmdi 2025-10-20 13:02:54 -04:00
parent db17f75c13
commit 6d7e760418
No known key found for this signature in database

View file

@ -424,6 +424,9 @@ export async function createMapRenderer(config: MapRendererOptions): Promise<Dec
thumbnailSrc = await config.thumbnailCache.getThumbnail(point.cover, point.file);
}
// Check if this update is still valid after async operation
if (thisUpdateId !== tooltipUpdateId) return;
if (thumbnailSrc) {
const img = new Image();
img.classList.add('map-tooltip-cover-image');