diff --git a/CHANGELOG b/CHANGELOG index 0aea267c35f97c38589ab73413b1528d6a40c2d5..f061ffb2efa0e6a87b59a90f1ade6ca11b2543db 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +minerva-front (18.0.3) stable; urgency=medium + * Bug fix: mwhen compartment is missing "default" is added (#314) + + -- Piotr Gawron <piotr.gawron@uni.lu> Thu, 11 Nov 2024 15:00:00 +0200 + minerva-front (18.0.3) stable; urgency=medium * Bug fix: Molart froze after clicking (#313) * Bug fix: missing description and modifications added to element and diff --git a/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx b/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx index 86dec734fd2b2ddde87bdc8214a2fa9c5f37a496..14fc544913abfe3f726e15fe0e0a52f820e402ff 100644 --- a/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx +++ b/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx @@ -60,14 +60,22 @@ export const BioEntityDrawer = (): React.ReactNode => { /> <div className="flex max-h-full flex-col gap-6 overflow-y-auto p-6"> <div className="text-sm font-normal"> - Compartment: <b className="font-semibold">{bioEntityData.compartmentName}</b> + Compartment:{' '} + <b className="font-semibold"> + {bioEntityData.compartmentName ? bioEntityData.compartmentName : 'default'} + </b> </div> {bioEntityData.fullName && ( <div className="text-sm font-normal"> Full name: <b className="font-semibold">{bioEntityData.fullName}</b> </div> )} - {bioEntityData.notes && <div className="text-sm font-normal">{bioEntityData.notes}</div>} + {bioEntityData.notes && ( + <span> + <hr className="border-b border-b-divide" /> + <div className="text-sm font-normal">{bioEntityData.notes}</div> + </span> + )} {isModificationAvailable && ( <h3 className="font-semibold">Post-translational modifications:</h3> )}