diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-08-31 16:51:15 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-08-31 16:52:21 +0000 |
| commit | 18c1d15e84b69112861e1560e9285dba3d95e43d (patch) | |
| tree | f27327ee83713bcc35a246a986e21c89c8071eed /apps/web/components/dashboard/preview/BookmarkPreview.tsx | |
| parent | ac4e4fabffd750bd257432eadf36fb1b95e882fa (diff) | |
| download | karakeep-18c1d15e84b69112861e1560e9285dba3d95e43d.tar.zst | |
fix: Incremental polling interval for ongoing crawls
Diffstat (limited to 'apps/web/components/dashboard/preview/BookmarkPreview.tsx')
| -rw-r--r-- | apps/web/components/dashboard/preview/BookmarkPreview.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/web/components/dashboard/preview/BookmarkPreview.tsx b/apps/web/components/dashboard/preview/BookmarkPreview.tsx index 01c86f6e..4766bd32 100644 --- a/apps/web/components/dashboard/preview/BookmarkPreview.tsx +++ b/apps/web/components/dashboard/preview/BookmarkPreview.tsx @@ -20,10 +20,10 @@ import { Building, CalendarDays, ExternalLink, User } from "lucide-react"; import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; import { + getBookmarkRefreshInterval, getBookmarkTitle, getSourceUrl, isBookmarkStillCrawling, - isBookmarkStillLoading, } from "@karakeep/shared/utils/bookmarkUtils"; import SummarizeBookmarkArea from "../bookmarks/SummarizeBookmarkArea"; @@ -129,11 +129,7 @@ export default function BookmarkPreview({ if (!data) { return false; } - // If the link is not crawled or not tagged - if (isBookmarkStillLoading(data)) { - return 1000; - } - return false; + return getBookmarkRefreshInterval(data); }, }, ); |
