From d9a5830c40124215452b439a9a5decbb11f1b6d1 Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 목, 16 12월 2021 09:42:14 +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