1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Merge pull request #1679 from mabashian/workflow-node-start-bug

Fixed js error when adding first workflow node
This commit is contained in:
Matthew Jones 2018-03-26 12:20:38 -07:00 committed by GitHub
commit d6203b521f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ export default ['$q', function($q){
placeholder: true,
isNew: true,
edited: false,
isRoot: params.parent.source.isStartNode ? true : false
isRoot: (params.betweenTwoNodes) ? _.get(params, 'parent.source.isStartNode', false) : _.get(params, 'parent.isStartNode', false)
};
let parentNode = (params.betweenTwoNodes) ? this.searchTree({element: params.tree, matchingId: params.parent.source.id}) : this.searchTree({element: params.tree, matchingId: params.parent.id});