From f9acd0300645c7519f93f81ef64adcbd4262bafb Mon Sep 17 00:00:00 2001
From: Muthukrishnanmatriot
 <76949556+muthukrishnanmatriot@users.noreply.github.com>
Date: Mon, 24 Jan 2022 13:26:48 +0530
Subject: [PATCH] TMSS-1398 - updated constructor fields

---
 .../src/routes/Scheduling/SchedulingUnitList.js          | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js
index c2b8dd2267e..093aa654cc4 100644
--- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js
+++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js
@@ -347,7 +347,7 @@ class SchedulingUnitList extends Component{
                 }
             } else {
                 if (parent !== undefined) {
-                    if (parent === 'sky' || parent === 'min_distance') {
+                    if (/*parent === 'sky' || */parent === 'min_distance' ) {
                         Object.assign(derviedscheduleconstraints, {
                             [parent + '_' + key]: [parseFloat((value * 180) / Math.PI).toFixed(2), ]
                         });
@@ -363,7 +363,12 @@ class SchedulingUnitList extends Component{
                         });
                         defaultcolumns[parent + '_from'] = {name: ` ${this.capitalize(parent)} from`};
                         defaultcolumns[parent + '_to'] = {name: ` ${this.capitalize(parent)} to`};
-                    } else    {
+                    }   else  if (parent === 'min_elevation' ) {
+                        Object.assign(derviedscheduleconstraints, {
+                            [parent + '_' + key]: [parseFloat((value * 180) / Math.PI).toFixed(2), ]
+                        });
+                        defaultcolumns[parent + '_' + key] = {name: ` ${this.capitalize(parent)} ${key} (Degrees)`};
+                    }   else    {
                         Object.assign(derviedscheduleconstraints, {
                             [parent + '_' + key]: value
                         });
-- 
GitLab