diff --git a/cg/store/crud/read.py b/cg/store/crud/read.py index 5d2c212178..dc6c669b3a 100644 --- a/cg/store/crud/read.py +++ b/cg/store/crud/read.py @@ -1663,10 +1663,9 @@ def get_uploaded_related_dna_cases(self, rna_case: Case) -> list[Case]: """Returns all uploaded DNA cases ids related to the given RNA case.""" related_dna_cases: list[Case] = [] + collaborators: set[Customer] = rna_case.customer.collaborators for rna_sample in rna_case.samples: - collaborators: set[Customer] = rna_case.customer.collaborators - related_dna_samples_query: Query = self._get_related_samples_query( sample=rna_sample, prep_categories=DNA_PREP_CATEGORIES,