fix: edit on measure change to NOT_STARTED
Signed-off-by: Nabhag Motivaras <65061890+Nabhag8848@users.noreply.github.com>
This commit is contained in:
committed by
Sacha Al Himdani
parent
f3e51e6638
commit
1eeb9d05f2
@@ -78,11 +78,11 @@ export default function MeasureFormDialog(props: Props) {
|
||||
|
||||
const { control, handleSubmit, register, formState, reset } =
|
||||
useFormWithSchema(measureSchema, {
|
||||
defaultValues: {
|
||||
values: {
|
||||
name: measure?.name ?? "",
|
||||
description: measure?.description ?? "",
|
||||
category: measure?.category ?? "",
|
||||
state: "NOT_STARTED",
|
||||
state: measure?.state ?? "NOT_STARTED",
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user