fix(ocme counts): corrected the reset on the tpye select to always clear out
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user