From 7e401279b72e7153598dfc25d5a2d37fb24ce716 Mon Sep 17 00:00:00 2001 From: Yaron Budowski Date: Thu, 23 Oct 2025 17:05:14 +0100 Subject: [PATCH] MOB-961 - taxon details - when navigating the taxonomy tree, preserve the navigation stack --- src/components/TaxonDetails/Taxonomy.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/TaxonDetails/Taxonomy.tsx b/src/components/TaxonDetails/Taxonomy.tsx index 6c0b723d2..7c1e764e9 100644 --- a/src/components/TaxonDetails/Taxonomy.tsx +++ b/src/components/TaxonDetails/Taxonomy.tsx @@ -23,15 +23,13 @@ const Taxonomy = ( { taxon: currentTaxon, hideNavButtons }: Props ) => { const scientificNameFirst = currentUser?.prefers_scientific_name_first; const navigateToTaxonDetails = ( taxonId: number ) => ( - navigation.navigate( { + navigation.push( "TaxonDetails", { // Ensure button mashing doesn't open multiple TaxonDetails instances key: `${route.key}-Taxonomy-TaxonDetails-${taxonId}`, name: "TaxonDetails", - params: { - id: taxonId, - hideNavButtons, - usesVision: false - } + id: taxonId, + hideNavButtons, + usesVision: false } ) );