fix(ocme counts): corrected the reset on the tpye select to always clear out

This commit is contained in:
2025-04-24 22:57:14 -05:00
parent 9bee452446
commit 3dc14e4097

View File

@@ -34,7 +34,12 @@ export default function OcmeCycleCount() {
formState: { errors }, formState: { errors },
reset, reset,
control, control,
} = useForm(); } = useForm({
defaultValues: {
lane: "",
laneType: "name",
},
});
const onSubmit = async (data: any) => { const onSubmit = async (data: any) => {
setData([]); setData([]);
@@ -99,7 +104,6 @@ export default function OcmeCycleCount() {
<Controller <Controller
control={control} control={control}
name="laneType" name="laneType"
defaultValue={""}
render={({ render={({
field: { onChange }, field: { onChange },
fieldState: {}, fieldState: {},