From e4a1817d7f0e2b825c027cc919c91b80211158a1 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 31 Aug 2023 19:27:14 +0200 Subject: [PATCH] Simplify navigation to set member photo --- geneit_app/src/routes/family/FamilyCoupleRoute.tsx | 3 ++- geneit_app/src/routes/family/FamilyMemberRoute.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/geneit_app/src/routes/family/FamilyCoupleRoute.tsx b/geneit_app/src/routes/family/FamilyCoupleRoute.tsx index 4b7fb10..430d0bd 100644 --- a/geneit_app/src/routes/family/FamilyCoupleRoute.tsx +++ b/geneit_app/src/routes/family/FamilyCoupleRoute.tsx @@ -165,7 +165,8 @@ export function FamilyEditCoupleRoute(): React.ReactElement { const cancel = () => { setShouldQuit(true); - n(-1); + n(family.family.coupleURL(couple!)); + //n(-1); }; const save = async (c: Couple) => { diff --git a/geneit_app/src/routes/family/FamilyMemberRoute.tsx b/geneit_app/src/routes/family/FamilyMemberRoute.tsx index 62e6b3e..1b79e35 100644 --- a/geneit_app/src/routes/family/FamilyMemberRoute.tsx +++ b/geneit_app/src/routes/family/FamilyMemberRoute.tsx @@ -185,8 +185,8 @@ export function FamilyEditMemberRoute(): React.ReactElement { const cancel = () => { setShouldQuit(true); - //n(family.family.URL(`member/${member!.id}`)); - n(-1); + n(family.family.memberURL(member!)); + //n(-1); }; const save = async (m: Member) => {