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 },
|
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: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user