Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

clipper: hide clip preview button when there's no clip data (#3772)

Muhammad Ali576fe78e33f0
diff --git a/extensions/web-clipper/src/views/main.tsx b/extensions/web-clipper/src/views/main.tsx
index 5e358ddc5..8b103fb5b 100644
--- a/extensions/web-clipper/src/views/main.tsx
+++ b/extensions/web-clipper/src/views/main.tsx
@@ -306,7 +306,7 @@ export function Main() {
</Button>
))}
- {clipData && !isClipping && (
+ {clipData && clipData.data && !isClipping && (
<Text
variant="body"
sx={{
@@ -322,7 +322,6 @@ export function Main() {
}
}}
onClick={async () => {
- if (!clipData) return;
const winUrl = URL.createObjectURL(
new Blob(["\ufeff", clipData.data], { type: "text/html" })
);