fix(crop): initialize openPresetGroup state to null
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user