aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/components/dashboard/preview/LinkContentSection.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/web/components/dashboard/preview/LinkContentSection.tsx b/apps/web/components/dashboard/preview/LinkContentSection.tsx
index f09cc31f..f1fe3820 100644
--- a/apps/web/components/dashboard/preview/LinkContentSection.tsx
+++ b/apps/web/components/dashboard/preview/LinkContentSection.tsx
@@ -26,10 +26,12 @@ import {
} from "@hoarder/shared/types/bookmarks";
function FullPageArchiveSection({ link }: { link: ZBookmarkedLink }) {
+ const archiveAssetId =
+ link.fullPageArchiveAssetId ?? link.precrawledArchiveAssetId;
return (
<iframe
title={link.url}
- src={`/api/assets/${link.fullPageArchiveAssetId}`}
+ src={`/api/assets/${archiveAssetId}`}
className="relative h-full min-w-full"
/>
);
@@ -199,7 +201,10 @@ export default function LinkContentSection({
</SelectItem>
<SelectItem
value="archive"
- disabled={!bookmark.content.fullPageArchiveAssetId}
+ disabled={
+ !bookmark.content.fullPageArchiveAssetId &&
+ !bookmark.content.precrawledArchiveAssetId
+ }
>
{t("common.archive")}
</SelectItem>