From 35bd61354e1c02075fbf8829cfc0419de2c0b8d7 Mon Sep 17 00:00:00 2001 From: Tamara Slosarek Date: Wed, 3 Jan 2024 15:16:13 +0100 Subject: [PATCH] chore(#684): use drug.guidelineGenes in GuidelineAnnotationCard --- app/lib/drug/widgets/annotation_cards/guideline.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/lib/drug/widgets/annotation_cards/guideline.dart b/app/lib/drug/widgets/annotation_cards/guideline.dart index c049f5b6..f3ff93e1 100644 --- a/app/lib/drug/widgets/annotation_cards/guideline.dart +++ b/app/lib/drug/widgets/annotation_cards/guideline.dart @@ -162,9 +162,7 @@ class GuidelineAnnotationCard extends StatelessWidget { style: TextStyle(fontStyle: FontStyle.italic), ); } else { - final genes = drug.userGuideline?.lookupkey.keys ?? - drug.guidelines.first.lookupkey.keys; - final geneDescriptions = genes.map((gene) { + final geneDescriptions = drug.guidelineGenes.map((gene) { final phenotypeInformation = UserData.phenotypeInformationFor( gene, context,