From dc3ebfa015a718ca35d77d32df6f8180c7a97ec7 Mon Sep 17 00:00:00 2001 From: /nithya <nithya.s@matriotsolutions.com> Date: Tue, 23 Mar 2021 18:58:52 +0530 Subject: [PATCH] TMSS-630 Updated Review Comment No.4(Fixed 'Not found' issues on task view page ) --- SAS/TMSS/frontend/tmss_webapp/src/routes/Task/view.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/view.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/view.js index 3b30d66c487..8a5fe8ea36c 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/view.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/view.js @@ -71,11 +71,8 @@ export class TaskView extends Component { } componentDidMount() { - // const taskId = this.props.location.state?this.props.location.state.id:this.state.taskId; - // let taskType = this.props.location.state?this.props.location.state.type:this.state.taskType; - // taskType = taskType?taskType:'draft'; const taskId = this.props.location.state?this.props.location.state.id:this.state.taskId; - let taskType = this.props.location.state?this.props.location.state.type:this.state.taskType; + let taskType = this.props.location.state && this.props.location.state.type?this.props.location.state.type:this.state.taskType; taskType = taskType?taskType:'draft'; if (taskId && taskType) { -- GitLab