diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-07-06 22:02:07 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-07-06 22:02:28 +0000 |
| commit | 362be3008aa8b036c4c448a86e459044af8784c2 (patch) | |
| tree | 27a9f2195558770820cab3da0859a4569d1db08e /apps/mobile/components/bookmarks | |
| parent | 959da9a8980b235370f3d1ae7eecf93df5508e2c (diff) | |
| download | karakeep-362be3008aa8b036c4c448a86e459044af8784c2.tar.zst | |
fix(mobile): Fix crash when bookmark doesn't have archive or screenshot. Fixes #1584
Diffstat (limited to 'apps/mobile/components/bookmarks')
| -rw-r--r-- | apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx b/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx index 5e1e7aa7..03999c3e 100644 --- a/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx +++ b/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx @@ -1,5 +1,5 @@ import { useState } from "react"; -import { Pressable, View } from "react-native"; +import { Pressable, Text, View } from "react-native"; import ImageView from "react-native-image-viewing"; import WebView from "react-native-webview"; import { WebViewSourceUri } from "react-native-webview/lib/WebViewTypes"; @@ -130,7 +130,9 @@ export function BookmarkLinkArchivePreview({ if (!asset) { return ( - <View className="flex-1 bg-background">Asset has no offline archive</View> + <View className="flex-1 bg-background"> + <Text>Asset has no offline archive</Text> + </View> ); } @@ -159,7 +161,9 @@ export function BookmarkLinkScreenshotPreview({ if (!asset) { return ( - <View className="flex-1 bg-background">Asset has no screenshot</View> + <View className="flex-1 bg-background"> + <Text>Asset has no screenshot</Text> + </View> ); } |
