aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-07-26 12:07:19 +0000
committerMohamed Bassem <me@mbassem.com>2025-07-26 12:07:19 +0000
commit94f39587501404f564511dd2fdc77c90efca99d1 (patch)
tree901d1222922c5bd6c023d9cca963400c4eb86a65 /apps/web/components/dashboard
parent1b14043a755581eca8505bb9cde34164179ecc95 (diff)
downloadkarakeep-94f39587501404f564511dd2fdc77c90efca99d1.tar.zst
fix: Avoid prefetching assets and tags in the link component. Fixes #1759
Diffstat (limited to 'apps/web/components/dashboard')
-rw-r--r--apps/web/components/dashboard/preview/AttachmentBox.tsx2
-rw-r--r--apps/web/components/dashboard/tags/TagPill.tsx1
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/web/components/dashboard/preview/AttachmentBox.tsx b/apps/web/components/dashboard/preview/AttachmentBox.tsx
index 674f151c..87c56eb8 100644
--- a/apps/web/components/dashboard/preview/AttachmentBox.tsx
+++ b/apps/web/components/dashboard/preview/AttachmentBox.tsx
@@ -98,6 +98,7 @@ export default function AttachmentBox({ bookmark }: { bookmark: ZBookmark }) {
target="_blank"
href={getAssetUrl(asset.id)}
className="flex items-center gap-1"
+ prefetch={false}
>
{ASSET_TYPE_TO_ICON[asset.assetType]}
<p>{humanFriendlyNameForAssertType(asset.assetType)}</p>
@@ -109,6 +110,7 @@ export default function AttachmentBox({ bookmark }: { bookmark: ZBookmark }) {
href={getAssetUrl(asset.id)}
className="flex items-center gap-1"
download={humanFriendlyNameForAssertType(asset.assetType)}
+ prefetch={false}
>
<Download className="size-4" />
</Link>
diff --git a/apps/web/components/dashboard/tags/TagPill.tsx b/apps/web/components/dashboard/tags/TagPill.tsx
index 91bd8504..81d700cd 100644
--- a/apps/web/components/dashboard/tags/TagPill.tsx
+++ b/apps/web/components/dashboard/tags/TagPill.tsx
@@ -82,6 +82,7 @@ export function TagPill({
href={`/dashboard/tags/${id}`}
data-id={id}
draggable={false}
+ prefetch={false}
>
{name} <Separator orientation="vertical" /> {count}
</Link>