From ab034d44d2807f9c210adb329ddd29809b14c92d Mon Sep 17 00:00:00 2001
From: Ramesh Kumar <ramesh.p@matriotsolutions.com>
Date: Thu, 17 Feb 2022 00:44:05 +0530
Subject: [PATCH] TMSS-1537: Updated constant property name

---
 SAS/TMSS/frontend/tmss_webapp/.env                             | 2 +-
 SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/summary.js | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/SAS/TMSS/frontend/tmss_webapp/.env b/SAS/TMSS/frontend/tmss_webapp/.env
index 5ae84cf5c36..ac6fa02c423 100644
--- a/SAS/TMSS/frontend/tmss_webapp/.env
+++ b/SAS/TMSS/frontend/tmss_webapp/.env
@@ -1,2 +1,2 @@
 REACT_APP_WEBSOCKET_URL=ws://localhost:5678/
-REACT_APP_EDITABLE_CONTRAINTS=defined,scheduled,schedulable,unschedulable
\ No newline at end of file
+REACT_APP_CONSTRAINT_EDITABLE_STATUS=defined,scheduled,schedulable,unschedulable
\ No newline at end of file
diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/summary.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/summary.js
index 1bb149b9ad5..78325cef8d8 100644
--- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/summary.js
+++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/summary.js
@@ -166,7 +166,6 @@ export class SchedulingUnitSummary extends Component {
         const promises = [  
             AuthUtil.getUserRolePermission()
         ];
-        console.log(process.env.REACT_APP_EDITABLE_CONTRAINTS)
         this.updateConstraintTemplate();   
         await Promise.all(promises).then(responses => {
             this.setState({userrole: responses[0],editCheck:1});
@@ -252,7 +251,7 @@ export class SchedulingUnitSummary extends Component {
                                 <>                        
                                     <div className="col-12 constraints-summary" style={{ top:"0px",position:"relative",}}>
                                         <label>Constraints:</label>
-                                        {permissions.edit &&  (_.includes(_.split(process.env.REACT_APP_EDITABLE_CONTRAINTS, ',' ), schedulingUnit.status))  ? 
+                                        {permissions.edit &&  (_.includes(_.split(process.env.REACT_APP_CONSTRAINT_EDITABLE_STATUS, ',' ), schedulingUnit.status))  ? 
                                         <i class="fa fa-pencil-alt" style={{ marginLeft:"5px",position:"absolute",top:"-3px",cursor:"pointer"}}
                                         title = {'Edit Scheduling Constraint'}                                            
                                         onClick={()=> this.props.onCloseFn(true)}>
-- 
GitLab