set default activity initially
This commit is contained in:
parent
58187db80a
commit
f24b66ae1c
@ -85,7 +85,7 @@ useEffect(() => {
|
|||||||
|
|
||||||
reset({
|
reset({
|
||||||
activityID: String(
|
activityID: String(
|
||||||
workItem?.workItem?.activityId || workItem?.activityId || ""
|
workItem?.workItem?.activityId || workItem?.activityId
|
||||||
),
|
),
|
||||||
workCategoryId: String(
|
workCategoryId: String(
|
||||||
workItem?.workItem?.workCategoryId || workItem?.workCategoryId || ""
|
workItem?.workItem?.workCategoryId || workItem?.workCategoryId || ""
|
||||||
@ -96,7 +96,7 @@ useEffect(() => {
|
|||||||
workItem?.workItem?.completedWork || workItem?.completedWork || 0,
|
workItem?.workItem?.completedWork || workItem?.completedWork || 0,
|
||||||
comment: workItem?.workItem?.description || workItem?.description || "",
|
comment: workItem?.workItem?.description || workItem?.description || "",
|
||||||
});
|
});
|
||||||
}, [workItem?.id]);
|
}, [workItem?.id,selectedActivity]);
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user