mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Fixed js error when adding first workflow node
This commit is contained in:
@@ -73,7 +73,7 @@ export default ['$q', function($q){
|
|||||||
placeholder: true,
|
placeholder: true,
|
||||||
isNew: true,
|
isNew: true,
|
||||||
edited: false,
|
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});
|
let parentNode = (params.betweenTwoNodes) ? this.searchTree({element: params.tree, matchingId: params.parent.source.id}) : this.searchTree({element: params.tree, matchingId: params.parent.id});
|
||||||
|
|||||||
Reference in New Issue
Block a user