Issue
I have a chunk of files related to a new feature that will be deployed using Jenkins.
I was able to deploy other branches, but I have been facing issues with a given branch.
I suspect the issue might have to do with the usage root scope.
and below is the piece of code related to the issue
fetchLeaseForm().then(function
() {
// setWebViewerForCustomTemplate($scope.selected.leaseForm.lease_form_template.document_path)
$rootScope.template_url
= $scope.selected.leaseForm.lease_form_template?.document_path
console.log($scope.selected.leaseForm.lease_form_template?.document_path,
'@@fetchleaseformthen')
$rootScope.customLeaseFormDropdown()
})
I have tried aking for the latest pull from the master so that cant is a possible issue. And I was able to push it on git without any issues.
Any insight on this issue would be helpful
Solution
you can do like this
fetchLeaseForm().then(function
() {
// setWebViewerForCustomTemplate($scope.selected.leaseForm.lease_form_template.document_path)
$rootScope.template_url
= $scope?.selected?.leaseForm?.lease_form_template?.document_path
if($rootScope?.template_url) {
console.log($scope.selected.leaseForm.lease_form_template?.document_path,
'@@fetchleaseformthen')
}
})
Answered By - Kenedy Nopriansyah
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.