From e4e6b133bdfa1ffdcbaccf942cd315e9db754f46 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 1e80e8d9c..2e839ab54 100644 --- a/root/static/js/canto-modules.js +++ b/root/static/js/canto-modules.js @@ -8829,7 +8829,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 = [];