From 86e0f83f732c7fac68aa5bd5092bdc68db8ff50f Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 17 Jun 2026 14:28:45 +0800 Subject: [PATCH] fix(ecommerce): define missing selectAnchorRef in one-click video panel --- src/features/ecommerce/panels/EcommerceOneClickVideoPanel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/ecommerce/panels/EcommerceOneClickVideoPanel.tsx b/src/features/ecommerce/panels/EcommerceOneClickVideoPanel.tsx index f453742..c50c0f8 100644 --- a/src/features/ecommerce/panels/EcommerceOneClickVideoPanel.tsx +++ b/src/features/ecommerce/panels/EcommerceOneClickVideoPanel.tsx @@ -4,7 +4,7 @@ import { ThunderboltOutlined, VideoCameraOutlined, } from "@ant-design/icons"; -import { useMemo, useState, type ChangeEvent, type DragEvent, type KeyboardEvent, type RefObject } from "react"; +import { useMemo, useRef, useState, type ChangeEvent, type DragEvent, type KeyboardEvent, type RefObject } from "react"; import EcommerceVideoWorkspace from "../EcommerceVideoWorkspace"; interface CloneImageItem { @@ -97,6 +97,7 @@ export default function EcommerceOneClickVideoPanel({ }: EcommerceOneClickVideoPanelProps) { const [openSelect, setOpenSelect] = useState<"platform" | "ratio" | null>(null); const [planTrigger, setPlanTrigger] = useState(0); + const selectAnchorRef = useRef(null); const productImageDataUrls = useMemo(() => productImages.map((img) => img.src), [productImages]); const productImageFiles = useMemo(() => productImages.map((img) => img.file), [productImages]);