diff --git a/components/EntityShowSubPhases.vue b/components/EntityShowSubPhases.vue index ede77f7..9204df3 100644 --- a/components/EntityShowSubPhases.vue +++ b/components/EntityShowSubPhases.vue @@ -75,7 +75,7 @@ const changeActivePhase = async (key) => { return p }) - const res = await useEntities("projects").update(item.id, {phases:item.phases}) + const res = await useEntities("projects").update(item.id, {phases:item.phases,active_phase: item.phases.find(i => i.active).label}) //const {error:updateError} = await supabase.from("projects").update({phases: item.phases}).eq("id",item.id) diff --git a/pages/staff/time/[id]/evaluate.vue b/pages/staff/time/[id]/evaluate.vue index e3f3705..bfe6e97 100644 --- a/pages/staff/time/[id]/evaluate.vue +++ b/pages/staff/time/[id]/evaluate.vue @@ -208,11 +208,11 @@ changeRange()