From 794a372d50bb99af6fb01c5bb19dd640e0183541 Mon Sep 17 00:00:00 2001 From: NithyaSanthanam <nithya.s@matriotsolutions.com> Date: Mon, 25 Oct 2021 21:50:40 +0530 Subject: [PATCH] TMSS-1004: Search in Topbar for Subtask fixed --- .../tmss_webapp/src/routes/Search/find.object.result.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js index 8febeea0e6c..a91ad842a8f 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js @@ -82,12 +82,8 @@ export class FindObjectResult extends Component{ <span className="find-obj-tree-view"> <a href={subtaskDetails.url} target='_blank' title=" View SubTask API"><i className="fa fa-link" /></a></span></>; subtask['icon'] = 'fas fa-tasks'; - let tasks = []; - for (const taskId of subtaskDetails.task_blueprints_ids) { - let taskMap = await this.findTask('blueprint', taskId); - tasks.push(taskMap[0]); - } - subtask['children'] = tasks; + let taskMap = await this.findTask('blueprint', subtaskDetails.task_blueprint_id); + subtask['children'] = taskMap; return [subtask]; } return ''; -- GitLab