From 576fe78e33f0cc3e6b9311917fd386cf1988f782 Mon Sep 17 00:00:00 2001 From: Muhammad Ali Date: Tue, 21 Nov 2023 08:18:28 +0500 Subject: [PATCH] clipper: hide clip preview button when there's no clip data (#3772) --- extensions/web-clipper/src/views/main.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() { ))} - {clipData && !isClipping && ( + {clipData && clipData.data && !isClipping && ( { - if (!clipData) return; const winUrl = URL.createObjectURL( new Blob(["\ufeff", clipData.data], { type: "text/html" }) );