From 46ce28adad8386af64864d93c3bd1080495f035f Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 5 Mar 2026 16:40:52 +0800 Subject: [PATCH] fix(image-annotator): move canvas proxy helper inside component --- components/image-annotator.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/image-annotator.tsx b/components/image-annotator.tsx index d3dc22282..ae138c5dc 100644 --- a/components/image-annotator.tsx +++ b/components/image-annotator.tsx @@ -108,6 +108,9 @@ export function ImageAnnotator({ const [mounted, setMounted] = useState(false); const fileInputRef = useRef(null); + const toCanvasLoadUrl = useCallback((url: string) => { + return buildImageProxyUrl(url); + }, []); // Handle open change const handleOpenChange = (newOpen: boolean) => { @@ -1986,6 +1989,3 @@ export function ImageAnnotator({ ); } - const toCanvasLoadUrl = useCallback((url: string) => { - return buildImageProxyUrl(url); - }, []);