From b32a8325b48fa4139e4fc15d48358a2457c9432a Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sat, 28 Sep 2024 12:11:07 +0000 Subject: [PATCH] fix(web): Fix another hydration error in copy to clipboard --- apps/web/components/dashboard/BulkBookmarksAction.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/components/dashboard/BulkBookmarksAction.tsx b/apps/web/components/dashboard/BulkBookmarksAction.tsx index e7068b9d..0867fdd2 100644 --- a/apps/web/components/dashboard/BulkBookmarksAction.tsx +++ b/apps/web/components/dashboard/BulkBookmarksAction.tsx @@ -69,6 +69,9 @@ export default function BulkBookmarksAction() { } function isClipboardAvailable() { + if (typeof window === "undefined") { + return false; + } return window && window.navigator && window.navigator.clipboard; }