fix: edit on measure change to NOT_STARTED

Signed-off-by: Nabhag Motivaras <65061890+Nabhag8848@users.noreply.github.com>
This commit is contained in:
Nabhag Motivaras
2025-10-02 18:33:00 +05:30
committed by Sacha Al Himdani
parent f3e51e6638
commit 1eeb9d05f2

View File

@@ -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",
},
});