Skip to content

Commit

Permalink
Don't clear extension when clearing term names
Browse files Browse the repository at this point in the history
Except when in FlyBase mode

Refs #2788
  • Loading branch information
kimrutherford committed Apr 3, 2024
1 parent 8093ed4 commit 92b5a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/static/js/canto-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -8771,7 +8771,7 @@ var annotationEditDialogCtrl =
$scope.annotation.term_ontid = termId;
$scope.annotation.term_name = termName;

if (!termId) {
if (!termId && $scope.flyBaseMode) {
// user has cleared the input field, so we clear the term_ontid and continue
$scope.annotation.conditions = [];
$scope.annotation.extension = [];
Expand Down

0 comments on commit 92b5a33

Please sign in to comment.