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