From 35c3a7d2ff0567b13a97da8f0d9c4d7ff81b737a Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 수, 15 12월 2021 13:31:09 +0900 Subject: [PATCH] 워크플로우 전이선 클릭 오류 수정 --- src/main/webapp/custom_components/js-workflow/js-workflow.directive.js | 35 +++++++++++++++++++---------------- 1 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/custom_components/js-workflow/js-workflow.directive.js b/src/main/webapp/custom_components/js-workflow/js-workflow.directive.js index a227475..6c99bba 100644 --- a/src/main/webapp/custom_components/js-workflow/js-workflow.directive.js +++ b/src/main/webapp/custom_components/js-workflow/js-workflow.directive.js @@ -669,24 +669,27 @@ if ($scope.vm.activeTarget != null) { var targetIssueStatus = $scope.vm.activeTarget.issueStatus; - var myIssueStatus = null; - angular.forEach($scope.vm.issueStatusVos, function (issueStatusVo) { - if (issueStatusVo.id === targetIssueStatus.id) { - myIssueStatus = issueStatusVo; - } - }); + // null 泥댄겕 + if (targetIssueStatus != null) { + var myIssueStatus = null; + angular.forEach($scope.vm.issueStatusVos, function (issueStatusVo) { + if (issueStatusVo.id === targetIssueStatus.id) { + myIssueStatus = issueStatusVo; + } + }); - if (myIssueStatus != null) { - if ($scope.vm.departments != null) { - var workflowDepartments = []; + if (myIssueStatus != null) { + if ($scope.vm.departments != null) { + var workflowDepartments = []; - angular.forEach($scope.vm.departments, function (department) { - var workflowDepartment = { - departmentVo : department - } - workflowDepartments.push(workflowDepartment); - }); - myIssueStatus.workflowDepartmentVos = workflowDepartments; + angular.forEach($scope.vm.departments, function (department) { + var workflowDepartment = { + departmentVo : department + } + workflowDepartments.push(workflowDepartment); + }); + myIssueStatus.workflowDepartmentVos = workflowDepartments; + } } } } -- Gitblit v1.8.0