From 1be376c67971c25c0ceacd10ac749380babf6824 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 11 Jun 2024 13:25:21 -0700 Subject: [PATCH] Remove debugging statement when generating drag previews (#36) --- frontend/faraday/lib/TileLayout.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/frontend/faraday/lib/TileLayout.tsx b/frontend/faraday/lib/TileLayout.tsx index 4c8cce22a..e42326ec3 100644 --- a/frontend/faraday/lib/TileLayout.tsx +++ b/frontend/faraday/lib/TileLayout.tsx @@ -275,7 +275,6 @@ const TileNode = ({ // No-op if not provided, meaning React-DnD will attempt to generate a preview from the DOM, which is very slow. const preview = useMemo(() => { const previewElement = renderPreview?.(layoutNode.data); - console.log("preview", previewElement); return (
@@ -289,10 +288,8 @@ const TileNode = ({ // I found a hacky workaround of just adding a timeout so the capture doesn't happen until after the first paint. useEffect( debounce(() => { - console.log("dragPreview effect"); if (previewRef.current) { toPng(previewRef.current).then((url) => { - console.log("got preview url", url); const img = new Image(); img.src = url; dragPreview(img);