From c38d05cd1390bc03abc91974309996942e877d62 Mon Sep 17 00:00:00 2001
From: unknown <n.santhanam@redkarma.eu>
Date: Fri, 26 Feb 2021 11:48:26 +0530
Subject: [PATCH] TMSS-625

Changes updated based on review comments
---
 .../src/routes/Scheduling/excelview.schedulingset.js   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/excelview.schedulingset.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/excelview.schedulingset.js
index f15290796a2..3551e0346ac 100644
--- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/excelview.schedulingset.js
+++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/excelview.schedulingset.js
@@ -687,13 +687,13 @@ export class SchedulingSetCreate extends Component {
         colKeyOrder.push('md_moon');
         colKeyOrder.push('md_jupiter');
         defaultCellValues['scheduler'] = constraintSchema.schema.properties.scheduler.default;
-        defaultCellValues['min_target_elevation'] = constraintSchema.schema.properties.sky.properties.min_target_elevation.default;
-        defaultCellValues['min_calibrator_elevation'] = constraintSchema.schema.properties.sky.properties.min_calibrator_elevation.default;
+        defaultCellValues['min_target_elevation'] =  (constraintSchema.schema.properties.sky.properties.min_target_elevation.default * 180) / Math.PI;
+        defaultCellValues['min_calibrator_elevation'] =(constraintSchema.schema.properties.sky.properties.min_calibrator_elevation.default * 180) / Math.PI;
         defaultCellValues['offset_from'] = 0;
         defaultCellValues['offset_to'] = 0;
-        defaultCellValues['md_sun'] = constraintSchema.schema.properties.sky.properties.min_distance.properties.sun.default;
-        defaultCellValues['md_moon'] = constraintSchema.schema.properties.sky.properties.min_distance.properties.moon.default;
-        defaultCellValues['md_jupiter'] = constraintSchema.schema.properties.sky.properties.min_distance.properties.jupiter.default;
+        defaultCellValues['md_sun'] = (constraintSchema.schema.properties.sky.properties.min_distance.properties.sun.default * 180) / Math.PI;
+        defaultCellValues['md_moon'] = (constraintSchema.schema.properties.sky.properties.min_distance.properties.moon.default * 180) / Math.PI;
+        defaultCellValues['md_jupiter'] = (constraintSchema.schema.properties.sky.properties.min_distance.properties.jupiter.default) / Math.PI;
         
         if(this.state.defaultStationGroups){
             let stationValue = '';
-- 
GitLab