From 76f256f56fd5b30be59039762f848bdcfc9cf9c2 Mon Sep 17 00:00:00 2001
From: unknown <n.santhanam@redkarma.eu>
Date: Tue, 23 Feb 2021 11:17:49 +0530
Subject: [PATCH] TMSS-625

Sky and sun,moon, Jupiter values on Scheduling constraints are updated as degree.
---
 .../src/routes/Scheduling/Scheduling.Constraints.js           | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/Scheduling.Constraints.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/Scheduling.Constraints.js
index 0fba33ff221..90920d54478 100644
--- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/Scheduling.Constraints.js
+++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/Scheduling.Constraints.js
@@ -42,6 +42,7 @@ export default (props) => {
                 propertyValue.propertyOrder=7;
             }
             if(propertyKey === 'min_calibrator_elevation' || propertyKey === 'min_target_elevation'){
+                propertyValue.default = (propertyValue.default * 180) / Math.PI;
                 propertyValue.propertyOrder=8;
                 propertyValue.validationType= 'elevation';
             }
@@ -55,7 +56,8 @@ export default (props) => {
                 propertyValue.propertyOrder=11;
             }
             if(propertyKey === 'sun' || propertyKey === 'moon' || propertyKey === 'jupiter'){
-               propertyValue.propertyOrder=12;
+                propertyValue.default = (propertyValue.default * 180) / Math.PI;
+                propertyValue.propertyOrder=12;
                 propertyValue.validationType= 'distanceOnSky';
             } 
             if(propertyKey === 'avoid_twilight' || propertyKey === 'require_day' || propertyKey === 'require_night'){
-- 
GitLab