From f5608cc3a420934a1d481cd5feba6c8c3c881060 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <p.gawron@atcomp.pl>
Date: Thu, 24 Oct 2024 15:09:10 +0200
Subject: [PATCH] provide submap name on open submap link

---
 CHANGELOG                                                      | 3 ++-
 .../AssociatedSubmap/AssociatedSubmap.component.tsx            | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index b564876d..eb0373fa 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,6 @@
-minerva-front (18.0.0) stable; urgency=medium
+minerva-front (18.0.1) stable; urgency=medium
   * Bug fix: show cookie baner only when cookie baner link is provided (#304)
+  * Bug fix: when link to submap is provided add submap name (#303)
 
  -- Piotr Gawron <piotr.gawron@uni.lu>  Thu, 24 Oct 2024 13:00:00 +0200
 
diff --git a/src/components/Map/Drawer/BioEntityDrawer/AssociatedSubmap/AssociatedSubmap.component.tsx b/src/components/Map/Drawer/BioEntityDrawer/AssociatedSubmap/AssociatedSubmap.component.tsx
index c14fbdd9..659ff193 100644
--- a/src/components/Map/Drawer/BioEntityDrawer/AssociatedSubmap/AssociatedSubmap.component.tsx
+++ b/src/components/Map/Drawer/BioEntityDrawer/AssociatedSubmap/AssociatedSubmap.component.tsx
@@ -19,7 +19,7 @@ export const AssociatedSubmap = (): React.ReactNode => {
       data-testid="associated-submap"
       className="flex flex-row flex-nowrap items-center justify-between"
     >
-      <p>Associated Submap: </p>
+      <p>Associated Submap: {relatedSubmap.name}</p>
       <Button className="max-h-8" variantStyles="ghost" onClick={openSubmap}>
         Open submap
       </Button>
-- 
GitLab