We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c85e08 commit e97fe73Copy full SHA for e97fe73
1 file changed
src/components/InnerLinkPreview.astro
@@ -258,7 +258,9 @@
258
259
if (this.cachedContent.size >= this.MAX_CACHE_SIZE) {
260
const oldestKey = this.cachedContent.keys().next().value;
261
- this.cachedContent.delete(oldestKey);
+ if (oldestKey) {
262
+ this.cachedContent.delete(oldestKey);
263
+ }
264
}
265
this.cachedContent.set(href, contentHtml);
266
return contentHtml;
0 commit comments