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:
commit
d6203b521f
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user