Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

minor fix

daniel31x1378c1f6246fb3
diff --git a/apps/web/components/Preservation/ReadableView.tsx b/apps/web/components/Preservation/ReadableView.tsx
index 766875a8..80d99c8a 100644
--- a/apps/web/components/Preservation/ReadableView.tsx
+++ b/apps/web/components/Preservation/ReadableView.tsx
@@ -355,6 +355,13 @@ export default function ReadableView({ link }: Props) {
highlightId: number | null,
color?: "yellow" | "red" | "blue" | "green"
) => {
+ if (
+ !selectionInfo?.text ||
+ selectionInfo.startOffset === -1 ||
+ selectionInfo.endOffset === -1
+ )
+ return;
+
if (selectionInfo)
setSelectionInfo({
...selectionInfo,