Skip to content

Commit e68ecd1

Browse files
committed
Ignore current allele when looking for duplicates
In the allele dialog, allow the discription to be changed and then edited back to the starting value. Refs #2841
1 parent b365fb9 commit e68ecd1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

root/static/js/canto-modules.js

+3
Original file line numberDiff line numberDiff line change
@@ -4166,6 +4166,9 @@ var alleleEditDialogCtrl =
41664166
CursAlleleList.allAllelesOfGene($scope.alleleData.gene_systematic_id)
41674167
.then(function (res) {
41684168
$.map(res, function(allele) {
4169+
if (allele.allele_id == $scope.alleleData.allele_id) {
4170+
return;
4171+
}
41694172
const desc = allele.description;
41704173
const alleleType = allele.type;
41714174
if (alleleType != "deletion" && alleleType != "disruption" &&

0 commit comments

Comments
 (0)