mirror of
https://github.com/ccmdi/obsidian-map-plus.git
synced 2026-07-22 06:43:14 +00:00
fix: additional check for stale tooltip
This commit is contained in:
parent
db17f75c13
commit
6d7e760418
1 changed files with 3 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue