fix(crop): initialize openPresetGroup state to null

This commit is contained in:
2026-07-16 21:46:28 +08:00
parent 7a6f4a2727
commit 300393dae1
@@ -1511,7 +1511,7 @@ export function CropOverlay({
}) { }) {
const { t } = useI18n(); const { t } = useI18n();
const [aspectLocked, setAspectLocked] = useState(false); const [aspectLocked, setAspectLocked] = useState(false);
const [openPresetGroup, setOpenPresetGroup] = useState<string | null>("instagram"); const [openPresetGroup, setOpenPresetGroup] = useState<string | null>(null);
const dragRef = useRef<{ const dragRef = useRef<{
mode: CropDragMode; mode: CropDragMode;
start: MaskPoint; start: MaskPoint;