From 92b5a3337d392d4a2658f75f01e6b38857f768a3 Mon Sep 17 00:00:00 2001 From: Kim Rutherford Date: Wed, 3 Apr 2024 13:20:35 +1300 Subject: [PATCH] Don't clear extension when clearing term names Except when in FlyBase mode Refs pombase/canto#2788 --- root/static/js/canto-modules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/static/js/canto-modules.js b/root/static/js/canto-modules.js index 705fd7e18..1321a1dc8 100644 --- a/root/static/js/canto-modules.js +++ b/root/static/js/canto-modules.js @@ -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 = [];