diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index 11d120c78..165c63a38 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -92,7 +92,7 @@ def update_single_variant_mp_aliases svmp = self.single_variant_molecular_profile aliases = self.variant_aliases mp_aliases = aliases.map do |a| - MolecularProfileAlias.where(name: a).first_or_create! + MolecularProfileAlias.where(name: a.name).first_or_create! end svmp.molecular_profile_aliases = mp_aliases