mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
Fixed js error when adding first workflow node
This commit is contained in:
parent
4c2cff7a63
commit
2c1fe14206
@ -73,7 +73,7 @@ export default ['$q', function($q){
|
||||
placeholder: true,
|
||||
isNew: true,
|
||||
edited: false,
|
||||
isRoot: params.parent.source.isStartNode ? true : false
|
||||
isRoot: _.get(params, 'parent.isStartNode') ? true : _.get(params, 'parent.source.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…
x
Reference in New Issue
Block a user