diff options
Diffstat (limited to 'apps/web/components/dashboard/bookmarks/EditorCard.tsx')
| -rw-r--r-- | apps/web/components/dashboard/bookmarks/EditorCard.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/web/components/dashboard/bookmarks/EditorCard.tsx b/apps/web/components/dashboard/bookmarks/EditorCard.tsx index a5966845..7ac1cade 100644 --- a/apps/web/components/dashboard/bookmarks/EditorCard.tsx +++ b/apps/web/components/dashboard/bookmarks/EditorCard.tsx @@ -24,7 +24,9 @@ import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; import { useUploadAsset } from "../UploadDropzone"; -function useFocusOnKeyPress(inputRef: React.RefObject<HTMLTextAreaElement>) { +function useFocusOnKeyPress( + inputRef: React.RefObject<HTMLTextAreaElement | null>, +) { useEffect(() => { function handleKeyPress(e: KeyboardEvent) { if (!inputRef.current) { |
